Re: usbfs mount options doesn't work in 2.6, works fine with 2.4

From: OGAWA Hirofumi
Date: Thu Dec 11 2003 - 09:48:45 EST


Greg KH <greg@xxxxxxxxx> writes:

> On Mon, Dec 08, 2003 at 05:59:10AM +0100, Stian Jordet wrote:
> > http://bugzilla.kernel.org/show_bug.cgi?id=1418
> > and
> > http://www.ussg.iu.edu/hypermail/linux/kernel/0307.3/0666.html
>
> Yeah, it's a bug. I haven't had the time to track it down yet. Any
> help with this would be greatly appreciated.

I looked driver/usb/inode.c. usbfs use get_sb_single(), but doesn't
implement ->remount_fs(). So options can pass the only first mount.

And I guess, in this case, simple_pin_fs() in create_special_files()
did the first mount, and simple_pin_fs() pass the usbfs_fill_super()
to NULL.

I think ->remount_fs() helps this. But I'm not sure, sorry.
--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/