Re: [PATCH] USB: prevent overlapping access by usb-storage and usbfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alan Stern wrote:
> > I don't know how much effort it would be for storage - is a block
> > device unaware that it has been mounted?
> 
> Those are two separate issues.  Firstly, usb-storage is not a block
> device drivers; it is a USB driver.

You're of course right, the knowledge needs to travel across several
drivers.


> Secondly, the block driver (not device) is not aware when any of
> the filesystems in any of the partitions has been mounted.
> But it is aware of when the device file is open.

Nod, that answers my thought. Thanks for clarification.


> > I mean: does the kernel
> > only keep a single link from the filesystem to the block device,
> > and nothing the other way around?
> 
> A block device can contain many filesystems: one in each partition.

I guess I have userspace bias; by block device I meant one
major+minor combination, ie. either full device or partition.


//Peter
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux