Re: [RFCv4 PATCH 00/13] Configfs integration

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

 



> * Andrzej Pietrasiewicz | 2012-11-22 13:06:54 [+0100]:
>>During its lifetime, the mass storage can require creating
>>lunX directories for its luns. And again, with usbf_option

On Thu, Nov 22 2012, Sebastian Andrzej Siewior wrote:
> You have first to detach the gadget because you can't update while it
> is in progress connected / working. If you add an additional LUN then
> there is no way to notify the host side about this.

I believe the point was that this happens during configuration.  The way
I see it is that user writes number of luns it wants the gadget to
have into a configfs file at which point the function creates lun#
directories so that each lun can be configured separately.

>>I also show how to write an adapter module, which provides
>>the old sysfs-based interface to mass storage with module parameters,
>>but internally operates on configfs.

> There is no sysfs interface, is there? We have only modprobe
> interface.

f_mass_storage creates a device and thus a sysfs entry for each LUN.
This, among other things, allows setting up of the backing file if the
LUN is removable.

-- 
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +----<email/xmpp: mpn@xxxxxxxxxx>--------------ooO--(_)--Ooo--

Attachment: pgpuMWHCRhE6x.pgp
Description: PGP signature


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

  Powered by Linux