Subject: Re: ext2fs and largefile
To: Frank Naumann <fnaumann@boerde.de>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 09/09/2005 10:01:28
On Fri, Sep 09, 2005 at 08:16:29AM +0200, Frank Naumann wrote:
> Hello!
> 
> >>I have a question about ext2fs and largefiles on it. Looks like it's not
> >>really supported. I installed the e2fsprogs under NetBSD and created a
> >>normally ext2 partition with mke2fs. It worked fine so far and was
> >>perfectly accessible from NetBSD and WinXP. Under WinXP with the ext2
> >>driver I copied a large file (above 4gb) into this partition. As side
> >>effect the large_file bit in the features of the superblock is set
> >>(EXT2_FEATURE_RO_COMPAT_LARGE_FILE). And now it's no longer accessible
> >>from NetBSD (only read only mountable). But on automatic startup
> >>fsck_ext2fs always fails and let the system go into single user mode.
> >
> >Yes, ext2fs large file is not supported yet.
> 
> Ok, then another questions: Is there a simple way to clear the large_file 
> bit in the filesystem without a disk editor and fiddling out the right 
> bit?

I don't think so. The bit has been set because there is a large file on
the filsystem, now you have to deal with it.
It could be cleared if all large files have been deleted, but for this
the system would have to scan the whole tree ...

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--