Re: Re: 答复: [PATCH] gadget: mass_storage: adapt logic block size to bound block devices

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

 



On Tue, 16 Aug 2011, Barry Song wrote:

> > As Michal pointed out, cdroms don't contain FAT filesystems.  You
> > should test with an ISO9660 filesystem.
> 
> then i think xianglong can make an iso image by:
> mkisofs -o imagefile.iso /path/to/files
> and use the regular file as the file name of gadget and check.

Yes.

> >>    The code in earlier version is also set to default value 9:
> >>             num_sectors = size >> 9;  /* File size in 512-byte blocks */
> >
> > Because I didn't want to go to the trouble of supporting variable block
> > sizes.
> 
> in your original design, does cdrom mass storage gadget only want to
> bind an regular iso image file or a real cdrom /dev/sr0...n on target
> board? do you want a normal block device to be the back device of the
> gadget?

Either a regular file or a real cdrom device should be okay.

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