--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
07-03-2012, 03:59 AM
Mike Snitzer
block: add sysfs entry for discard_alignment
On Mon, Jul 02 2012 at 10:34pm -0400,
Vivek Goyal <vgoyal@redhat.com> wrote:
> On Mon, Jul 02, 2012 at 03:20:23PM +0200, Paolo Bonzini wrote:
> > The next patches will actually use the alignment, expose it in sysfs
> > for ease of debugging.
> >
>
> Don't we already have discard_alignment exported as device attribute.
>
> /sys/block/<dev>/discard_alignment
Yes we do. It is documented in Documentation/ABI/testing/sysfs-block
So this patch isn't needed.
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
07-03-2012, 11:51 AM
Paolo Bonzini
block: add sysfs entry for discard_alignment
Il 03/07/2012 04:34, Vivek Goyal ha scritto:
>> > The next patches will actually use the alignment, expose it in sysfs
>> > for ease of debugging.
>> >
> Don't we already have discard_alignment exported as device attribute.
>
> /sys/block/<dev>/discard_alignment
Ah, interesting, I missed it completely. I guess it's because queue/
directories only exist for full disks, and the correct alignment varies
for each partition. So this patch is unnecessary.
Paolo
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
07-03-2012, 02:21 PM
Paolo Bonzini
block: add sysfs entry for discard_alignment
Il 03/07/2012 16:00, Vivek Goyal ha scritto:
>> >
>> > Ah, interesting, I missed it completely. I guess it's because queue/
>> > directories only exist for full disks, and the correct alignment varies
>> > for each partition. So this patch is unnecessary.
> Partition discard_alignments are available in
> /sys/block/<disk>/<partition>/discard_alignment.
Yes. If it were in queue/, it wouldn't be available.
> That raises an interesting question for patch3. If the discard is happening to
> a partition, shouldn't you be looking at partition discard_alignment
> instead of always looking at queue discard_alignment?