linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* usbfs mount options doesn't work in 2.6, works fine with 2.4
@ 2003-12-08  4:52 Stian Jordet
  2003-12-08  4:59 ` Stian Jordet
  0 siblings, 1 reply; 7+ messages in thread
From: Stian Jordet @ 2003-12-08  4:52 UTC (permalink / raw)
  To: linux-kernel

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: usbfs mount options doesn't work in 2.6, works fine with 2.4
  2003-12-08  4:52 usbfs mount options doesn't work in 2.6, works fine with 2.4 Stian Jordet
@ 2003-12-08  4:59 ` Stian Jordet
  2003-12-10 21:31   ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Stian Jordet @ 2003-12-08  4:59 UTC (permalink / raw)
  To: linux-kernel

man, 08.12.2003 kl. 05.52 skrev Stian Jordet:
> Is this something other people are
> experiencing as well, or is this some kind of configuration problem? I'm
And I just found:

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

Best regards,
Stian


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: usbfs mount options doesn't work in 2.6, works fine with 2.4
  2003-12-08  4:59 ` Stian Jordet
@ 2003-12-10 21:31   ` Greg KH
  2003-12-10 22:04     ` Stian Jordet
  2003-12-11 14:47     ` OGAWA Hirofumi
  0 siblings, 2 replies; 7+ messages in thread
From: Greg KH @ 2003-12-10 21:31 UTC (permalink / raw)
  To: Stian Jordet; +Cc: linux-kernel

On Mon, Dec 08, 2003 at 05:59:10AM +0100, Stian Jordet wrote:
> man, 08.12.2003 kl. 05.52 skrev Stian Jordet:
> > Is this something other people are
> > experiencing as well, or is this some kind of configuration problem? I'm
> And I just found:
> 
> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: usbfs mount options doesn't work in 2.6, works fine with 2.4
  2003-12-10 21:31   ` Greg KH
@ 2003-12-10 22:04     ` Stian Jordet
  2003-12-11  9:07       ` Duncan Sands
  2003-12-11 14:47     ` OGAWA Hirofumi
  1 sibling, 1 reply; 7+ messages in thread
From: Stian Jordet @ 2003-12-10 22:04 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel

ons, 10.12.2003 kl. 22.31 skrev Greg KH:
> On Mon, Dec 08, 2003 at 05:59:10AM +0100, Stian Jordet wrote:
> > man, 08.12.2003 kl. 05.52 skrev Stian Jordet:
> > > 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: usbfs mount options doesn't work in 2.6, works fine with 2.4
  2003-12-10 22:04     ` Stian Jordet
@ 2003-12-11  9:07       ` Duncan Sands
  0 siblings, 0 replies; 7+ messages in thread
From: Duncan Sands @ 2003-12-11  9:07 UTC (permalink / raw)
  To: Stian Jordet, Greg KH; +Cc: linux-kernel

On Wednesday 10 December 2003 23:04, Stian Jordet wrote:
> ons, 10.12.2003 kl. 22.31 skrev Greg KH:
> > On Mon, Dec 08, 2003 at 05:59:10AM +0100, Stian Jordet wrote:
> > > man, 08.12.2003 kl. 05.52 skrev Stian Jordet:
> > > > 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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: usbfs mount options doesn't work in 2.6, works fine with 2.4
  2003-12-10 21:31   ` Greg KH
  2003-12-10 22:04     ` Stian Jordet
@ 2003-12-11 14:47     ` OGAWA Hirofumi
  2003-12-11 15:03       ` OGAWA Hirofumi
  1 sibling, 1 reply; 7+ messages in thread
From: OGAWA Hirofumi @ 2003-12-11 14:47 UTC (permalink / raw)
  To: Greg KH; +Cc: Stian Jordet, linux-kernel

Greg KH <greg@kroah.com> 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@mail.parknet.co.jp>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: usbfs mount options doesn't work in 2.6, works fine with 2.4
  2003-12-11 14:47     ` OGAWA Hirofumi
@ 2003-12-11 15:03       ` OGAWA Hirofumi
  0 siblings, 0 replies; 7+ messages in thread
From: OGAWA Hirofumi @ 2003-12-11 15:03 UTC (permalink / raw)
  To: Greg KH; +Cc: Stian Jordet, linux-kernel

OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> writes:

> Greg KH <greg@kroah.com> 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.

Ah, ->remount_fs() is not enough for already created inode, even if I
was right.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-12-11 15:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-08  4:52 usbfs mount options doesn't work in 2.6, works fine with 2.4 Stian Jordet
2003-12-08  4:59 ` Stian Jordet
2003-12-10 21:31   ` Greg KH
2003-12-10 22:04     ` Stian Jordet
2003-12-11  9:07       ` Duncan Sands
2003-12-11 14:47     ` OGAWA Hirofumi
2003-12-11 15:03       ` OGAWA Hirofumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).