Skip to contentSkip to conversation

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

DISCUSSION Stian Jordet 4 participants 7 messages Dec 8, 2003 – Dec 11, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

I just noted that whatever mount options I use on usbfs, they are ignored. Works just fine on 2.4. Is this something other people are experiencing as well, or is this some kind of configuration problem? I'm having this line in fstab:

usbfs /proc/bus/usb usbfs defaults,devmode=0666 0 0

which does what I want with 2.4, but not 2.6..

Best regards,
Stian

#2 lore raw
Quoted 5 lines · Stian Jordet

man, 08.12.2003 kl. 05.52 skrev Stian Jordet:

Quoted 2 lines

Is this something other people are
experiencing as well, or is this some kind of configuration problem? I'm

And I just found:

Quoted 8 lines

http://bugzilla.kernel.org/show_bug.cgi?id=1418

and

http://www.ussg.iu.edu/hypermail/linux/kernel/0307.3/0666.html

Oh well. I can use my digital camera as root. No problem :P

Yeah, it's a bug. I haven't had the time to track it down yet. Any help with this would be greatly appreciated.

thanks,

greg k-h

#3 lore raw

ons, 10.12.2003 kl. 22.31 skrev Greg KH:

Quoted 6 lines · Stian Jordet
Quoted 3 lines

man, 08.12.2003 kl. 05.52 skrev Stian Jordet:

Quoted 2 lines

Is this something other people are
experiencing as well, or is this some kind of configuration problem? I'm

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'd be happy to help, if I weren't too stupid with C. Sorry :(

Best regards,
Stian

#4 lore raw
Quoted 11 lines · Stian Jordet

ons, 10.12.2003 kl. 22.31 skrev Greg KH:

Quoted 8 lines · Stian Jordet
Quoted 4 lines

man, 08.12.2003 kl. 05.52 skrev Stian Jordet:

Quoted 3 lines

Is this something other people are
experiencing as well, or is this some kind of configuration problem? I'm

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'd be happy to help, if I weren't too stupid with C. Sorry :(

Well, do your best and keep mentioning this problem. One day either you will succeed or someone else (who knows, maybe me...) will have some spare time when your mail comes in, and look into it.

Ciao,

Duncan.

#5 lore raw
In reply to Greg KH
Quoted 7 lines · Greg KH
Quoted 3 lines · Stian Jordet

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.

Signature · 1 line
OGAWA Hirofumi <[email protected]>
#6 lore raw
Quoted 10 lines · OGAWA Hirofumi
Quoted 7 lines · Greg KH
Quoted 3 lines · Stian Jordet

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.

Quoted 8 lines

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.

Ah, ->remount_fs() is not enough for already created inode, even if I was right.

Signature · 1 line
OGAWA Hirofumi <[email protected]>