Problems unlinking files

David Woodhouse dwmw2 at infradead.org
Wed Jun 19 19:33:42 EDT 2002


catlee at canada.com said:
> I've noticed some problems with unlinking files with JFFS2 in my linux
> 2.2.18 port.  After unlinking a file, it doesn't appear in the
> directory listing, but if I do an 'ls' on the unlinked file, I can
> still get information on the file.  I can still read and write to the
> file, but it refuses to show up in the directory listing. After I
> unmount the JFFS2 partition and remount it the file isn't there at
> all.

Can you run with CONFIG_JFFS2_FS_DEBUG=1 and show the output while you 
unlink the file, then open it again?

Preferably using a serial console, and they'll be KERN_DEBUG messages so 
you'll need to echo 9 > /proc/sys/kernel/printk to make them get printed.

> Any ideas?  I'm sure I must have deleted something important getting
> everything working with linux 2.2.18.

Show me your jffs2_unlink() and jffs2_do_unlink() -- and indeed the rest of 
it :)

--
dwmw2






More information about the linux-mtd mailing list