Re: file storage gadget: Compilation as built-in?

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

 



On Mon, 3 Aug 2009, David Vrabel wrote:

> Luis Galdos wrote:
> > Hi all,
> > 
> > I have some questions concerning to the file storage gadget (g_file_storage) and its 
> > compilation as built-in driver: AFAIK, the driver initialization fails cause the file 
> > system is not available when the driver tries to init the backing file (please correct me 
> > if I'm wrong). Now, for solving this issue I have used a notifier-chain that informs about 
> > the availability of the root file system (see below patch). This implementation works when 
> > the driver is compiled as loadable module too.
> 
> I think a better approach would be a sysfs file to set the backing file
> (instead of the module parameter).

I agree.  Using the sysfs file would be a lot simpler.

You might want to change the file_storage.c source so that the
"removable" parameter defaults to True if the driver isn't built as a
module.

Alan Stern

--
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