sbd and sectorsize

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

 



On lwn there is a piece of code for a Simple Block Device driver: http://lwn.net/Articles/58720/ . It is for an older kerner and someone ported it to a newer kernel: http://blog.superpat.com/2010/05/04/a-simple-block-driver-for-linux-kernel-2-6-31/

This code works fine al long as you do not touch the logical_block_size paramater. Increasing it to 1024, 2048 or 4096 ends in a disaster, but not in the code itself. Anything can happen, instant reboot, instant hang, endless traces over the serial line.

I have added blk_queue_physical_block_size to sbd_init but that dit not help.



I want to write a dedup block device, and do not want to be stuck at a 512 bytes sector size. 4k is small enough

--
Hans

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[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