]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blkdev: add blkdev_is_misaligned()
authorDavidlohr Bueso <dave@gnu.org>
Sat, 9 Apr 2011 00:20:49 +0000 (21:20 -0300)
committerKarel Zak <kzak@redhat.com>
Tue, 12 Apr 2011 11:08:52 +0000 (13:08 +0200)
commitba326929706ec4dc8ab8bc0a09868bcd6fd6d75f
tree645e388dc4cfa9867db938b5fdf038718964ea70
parent0a0803460c238b96e240de2158043505d914251f
blkdev: add blkdev_is_misaligned()

This functions returns the status of the device's alignment. It will
be 0 when aligned, otherwise return the offset.

[kzak@redhat.com: - returns 0 if the ioctl failed]

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
include/blkdev.h
lib/blkdev.c