From: Phillip Susi <psusi@cfl.rr.com>
To: Nicolas George <nicolas.george@ens.fr>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: Filesystem for mobile hard drive
Date: Sun, 12 Feb 2006 19:46:28 -0500 [thread overview]
Message-ID: <43EFD6E4.60601@cfl.rr.com> (raw)
In-Reply-To: <20060212150331.GA22442@clipper.ens.fr>
Nicolas George wrote:
> Hi.
>
> I am about to buy a mobile hard drive (actually, a FireWire/USB box and a
> normal hard drive), and it raises the question of which filesystem to put on
> it. I am not wondering which of ext3, reiserfs, XFS or JFS is best, but more
> basically whether I should use a Linux/Unix-style filesystem or the horrible
> FAT.
>
> The drawbacks of FAT are numerous and well-known: poor efficiency with big
> files, fragmentation, bad handling of file names, lack of robustness, and
> worst of all, the 4 Go limit. On the other hand, FAT gives the possibility
> to easyly read the drive on non-Unix systems (I know there are ext2 and
> reiserfs readers for windows, I do not know for XFS or JFS, but at the worst
> it should be possible to do something with colinux).
>
If by FAT you mean FAT16, then yes, you have an 8 GB limit for the
entire filesystem. Fat32 on the other hand, can handle much more and so
should be suitable in this aspect. Fragmentation is also a property not
of the filesystem, but of Microsoft's filesystem drivers. I'm fairly
sure that the linux fat implementations do not use absurdly stupid
allocation algorithms that lead to lots of fragmentation.
> All these elements are rather feeble, but the Unix-style filesystems have a
> big drawback as mobile filesystems: they store UIDs. UIDs make sense inside
> a given system, but not across systems. On the most annoying case, I can
> have my disk automatically mounted on a system where I am not root, and all
> my files unreadable because they belong to another user.
This can be overcome with the UDF filesystem by using the uid and gid
mount options, allowing the files to appear to be owned by the correct
local user. It would be nice if the other filesystems were patched to
allow such options as well.
>
> Since big mobile mass-storage devices which require efficient filesystems
> will become more and more common, I think this problem should be addressed.
> Someone suggested to me to use some sort of network filesystem (NFS or SMB),
> and its UID mapping facility. That should work, but that is rather an ugly
> solution, and that is not something that can be done in five minutes while
> visiting a friend.
>
Network filesystems are not on disk filesystems, so they have nothing to
do with this discussion; you can't format a disk as "nfs" or "smb".
> I believe that we lack an option at the VFS to completely override file
> ownership of a filesystem. But maybe there are other solutions.
I agree. I recently submitted a patch fixing a bug in the udf
filesystem so it correctly uses the uid and gid mount options to
translate the ownership of files owned on disc by id -1 to the values
you specify. It would be nice if you could also specify that should be
done for all files, not just those owned by nobody, and if all
filesystems allowed you to do this.
>
> Did someone already think in depths about this issue?
>
>
> Regards,
>
next prev parent reply other threads:[~2006-02-13 0:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-12 15:03 Filesystem for mobile hard drive Nicolas George
2006-02-13 0:46 ` Phillip Susi [this message]
2006-02-13 1:07 ` Nicolas George
2006-02-13 2:26 ` Phillip Susi
2006-02-13 8:59 ` Jan Engelhardt
2006-02-13 9:23 ` Kalin KOZHUHAROV
2006-02-13 16:07 ` Phillip Susi
2006-02-13 10:35 ` Nicolas George
2006-02-13 15:56 ` Phillip Susi
2006-02-13 17:18 ` Nicolas George
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43EFD6E4.60601@cfl.rr.com \
--to=psusi@cfl.rr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nicolas.george@ens.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox