[Ilugc] mkfs.msdos implementation in 2.6.16 kernel

  • From: srinivasg@xxxxxxxxxxxxxxxxxxxxx (Srinivas G.)
  • Date: Sun Sep 10 18:33:53 2006

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.

 

Thanks and Regards,

Srinivas.

 

 

Other related posts: