On Fri, Apr 28, 2006 at 05:01:32AM +0000, [EMAIL PROTECTED] wrote: > Hi, > > I have question. > > I have written a Skelton driver for Mass-Storage device (init,exit, probe, > disconnect,release,and open). When I tried to test (by open ("/dev/sda5", > read-only)) my Skelton driver by writing an application, i failed to open. > I noticed that I have to mount the memory stick after doing insmod > my_driver.ko.
Yes, that's the way that block devices work. > my questions are... Our first one is, why write another mass-storage driver when the kernel already has 2? > 1) Do I have to mount the stick like "mount -t vfat /dev/sda5 /mnt/storage" > before doing open in the application? You don't ever call "open" on a block device when dealing with a file system. > 2) If I mount with the above mentioned command, from my test application > can I able to access the device with the open call? No. > 3) Otherwise do I have to write any piece of code in the driver itself for > mounting? You just have to use the standard block driver or scsi interface. You are doing that, right? good luck, greg k-h ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel