[Ilugc] mkfs.msdos implementation in 2.6.16 kernel

  • From: girish1729@xxxxxxxxx (Girish Venkatachalam)
  • Date: Sun Sep 10 19:08:18 2006

On Sun, Sep 10, 2006 at 06:33:21PM +0530, Srinivas G. wrote:
|Dear All,
|

|
|I developed a small prototype for the block driver as given in the 16th
|chapter of Alessandro Rubini book in 2.6.10 kernel and ported to
|2.6.16.9 kernel.
|

|
|Everything works fine except the ioctl part. When I issue commands like
|mkfs.msdos and mkfs.vfat, the ioctl of the driver gets invoked in 2.6.10
|but not in the 2.6.16.9.
|

|
|I did strace on the command mkfs.msdos and noticed that the application
|is issuing the 0x301 ioctl to the block layer which is returning with
|the following error:
|
|"Inappropriate ioctl to the device"
|

|
|This error in turn is resulting in mkfs.msdos error.  The command says
|"unable to get the disk geometry"
|

|
|Can any one provide a pointer about the usage of the above two commands
|in the 2.6.16.9 kernel.
I guess you could try  kernelnewbies@xxxxxxxxxxxx

You will get a much more technical and informative answer there. 

Your question is very good, so I am damn sure someone will respond immediately.

Best of Luck!

regards,
Girish

Other related posts: