Hi, On 11/18/2010 10:45 AM, ext nidhi mittal hada wrote:
So i want to learn how can we store data on a pen drive connected to usb interface from use space C program. in that concern ..i reached to Greg K H article mentioning libusb ...is there any other way too ? then usb_control_msg function i found difficult to comprehend ..how do i know parameters for my pen drive ....
Don't re-invent the wheel. For you (at user space) the usb storage host side driver and the scsi disk driver already provide a block device /dev/sdxx for you to read/write to.
You can use any filesystem of your choice on that block device and then read/write to it using the file read/write mechanism in the programming language of your choice.
note: FAT32 is not a reliable filesystem. There are better filesystems out there.
-- regards, -roger -- 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