DOC2000 partitiioning question

David Woodhouse dwmw2 at infradead.org
Tue Jun 11 04:45:01 EDT 2002


brendan.simon at bigpond.com said:
> HUH ??? If I read this correctly, this means one can NEVER reformat a
> NFTL  device with kernel that boots from a DOC (since the driver must
> be built  in to the kernel).  Is this correct ?

Yes, although in practice you'll get away with it if the NFTL is not in use 
at the time and you reboot without starting to use it. In general, you 
should be using the M-Systems DFORMAT utility under DOS anyway, rather than 
the nftl_format program under Linux.

> This is obviously different for EXT2 and other filesystems, as they
> can  be reformatted anytime with the driver module loaded or built in
> to the  kernel.  Is there a technical reason why NFTL is not the same
> ???

You can't mount it in the same way as other file systems because it is not 
a normal file system. It doesn't provide a file system to the VFS, it 
provides a block device. It's only _like_ a file system.

We could feasibly add an ioctl or some other way to instruct the NFTL code 
to 'unmount' and 'remount' an NFTL. It wouldn't be that hard - we have the 
code there to deal with modular DiskOnChip drivers being loaded and going 
away. Nobody's cared enough to do it, though.

Reformatting the NFTL should be a rare occurrence.


--
dwmw2






More information about the linux-mtd mailing list