Question on hd_geometry & blk_rq_cur_sectors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,Â
I have 2 questions on creating a ramdisk driver.Â

How do I init the hd_geometry for my device ie to say how do I setÂgeo cylinders, head, sectors and size. As this is ramdisk I dont think it matters but want to confirm.
geo->cylinders = 1;
geo->heads = 1;
geo->sectors = Device.size/logical_block_size;
geo->start = 0;Â

Also, with my current settings, if I use DD on my ramdisk I get "blk_rq_cur_sectors" count to be always 8, which confuses my drive b'se I want to only handle 512 requests at a time.Â

Simple command to test the disk sing DDÂ"sudo dd if=/dev/urandom of=/dev/sbd0 bs=512 count=1"
with bs=512 I was hoping to see only the 512 byte request

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux