public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
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 21:26:31 -0500	[thread overview]
Message-ID: <43EFEE57.7070009@cfl.rr.com> (raw)
In-Reply-To: <20060213010701.GA8430@clipper.ens.fr>

Nicolas George wrote:
> According to Wikipedia, and what I knew besides, FAT32 has a limit of 2 To
> for the whole filesystem. But the limit I was talking of is the file size
> limit: 4 Go perfile. Which is, nowadays, a bit short: an ISO image for a
> DVD-R does not fit, for example.
> 

Ahh yes, the per file limit.  BTW, why are you saying "To" and "Go" when 
you apparently mean "TB" and "GB"?

> I am not sure about that: you can not do really good algorthms on bad data
> structures, and the data structures of FAT do not provide any support to do
> smart allocation.
> 

The fat data structures do not encourage fragmentation any more or less 
than ext2/3.  NTFS is slightly better, more comparable to reiserfs than 
ext2/3, but the difference is small.  What causes massive fragmentation 
is how the driver chooses to allocate new blocks as you write to files. 
  Microsoft has always used about the worst possible algorithm for doing 
this you can imagine, which is why fragmentation has always been a big 
problem on their OSes.  Linux is smarter and allocates blocks such that 
fragmentation is kept to a minimum.

> That is interesting. Do you know how efficient UDF is compared to others
> filesystems on normal hard drives? It is optimized for CDs and DVDs, I would
> not be surprised if the performances were poor on different supports.
> 

I have not done any testing, but I know no reason why it would be worse 
than fat.  It does not do transaction logging, and there currently is no 
fsck for it, so for safety reasons, it may not be such a good choice. 
If you want reliability, efficiency, and posix semantics, I'd go with 
reiserfs or ext3.

> I believe that such options should not be done on a per-filesystem basis.
> Something in the common code of the VFS would be more logical. 
> 

I agree.  I think the VFS layer should process the uid/gid options.  By 
default it should replace nobody with the specified id, and fat and ntfs 
  should just report all files as owned by nobody.  Then a new option 
should be added to force the translation for all ids, not just nobody.


> The idea was to mount the disk with its haphazard UIDs, and then export it
> and mount it as a network filesystem over the loopback. By itself, it is
> absolutely useless, but networked filesystems have UIDs mapping facilities.
> 

Eww, that is quite a kludge.


  reply	other threads:[~2006-02-13  2:26 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
2006-02-13  1:07   ` Nicolas George
2006-02-13  2:26     ` Phillip Susi [this message]
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=43EFEE57.7070009@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