Re: Interpreting /sys/block//{,}/discard_alignment

2019-01-10 Thread james harvey
On Thu, Jan 10, 2019 at 7:04 PM Martin K. Petersen wrote: > James, > > > Q1 - I'm hoping you can clarify how this should be interpreted. > > > > I originally took this to mean the number of bytes into the first > > discard_granularity block that the partition resides at. i.e. If > >

Re: Interpreting /sys/block//{,}/discard_alignment

2019-01-10 Thread Martin K. Petersen
James, > Q1 - I'm hoping you can clarify how this should be interpreted. > > I originally took this to mean the number of bytes into the first > discard_granularity block that the partition resides at. i.e. If > discard_granularity_block is 128MB, and partition 1 starts at sector > 2048 with

Interpreting /sys/block//{,}/discard_alignment

2019-01-09 Thread james harvey
https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-block Describes discard_alignment as: "Devices that support discard functionality may internally allocate space in units that are bigger than the exported logical block size. The discard_alignment parameter indicates how many bytes the