On Thu, 7 Sep 2006, Siddharth Choudhuri wrote: > Thanks. I put printk() in sd_init_command() to output > block(rq->sector) and count(Scpnt->request_bufflen >> > 9). Now, I can see the [read/write, block, count] as I > start some file I/O activity on a mounted usb flash > disk (moutned as vfat). I have two questions however. > (I hope this is not off-topic): > > 1. The value of block is multiple of 4 most of the > times. Is there a reason for this ?
In a VFAT filesystem a lot of the blocks are allocated in clusters. If your device uses 2 KB clusters (= 4 sectors) then that would explain it. > 2. What does the count signify ? For example does > block = X, count = 8 imply that blocks X, X+1, ... , > X+7 are being written/read ? Yes. Alan Stern ------------------------------------------------------------------------- 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 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
