]> err.no Git - util-linux/commit
libblkid: support alignment_offset=-1
authorKarel Zak <kzak@redhat.com>
Wed, 3 Mar 2010 12:12:02 +0000 (13:12 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Mar 2010 13:00:34 +0000 (14:00 +0100)
commit25d1e630f6e32f05454ba38e5c4fdd03b66de589
tree06016faf5a6c0240e0da2edf8be7e94cb7a0e645
parent376306795fc38ca024763cf299d855fb7e79d5d8
libblkid: support alignment_offset=-1

Unfortunately, Linux kernel uses "signed int" for alignment_offset and
the offset could be -1 for devices with undefined alignment (if no
compatible sizes and alignments exist for stacked devices).

There is no way how libblkid caller can respond to the value -1, so
we are going to hide this corner case...

TODO: maybe we can export an extra boolean value 'misaligned' rather
      then complete hide this problem. We will see...

Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/blkidP.h
shlibs/blkid/src/devno.c
shlibs/blkid/src/partitions/partitions.c
shlibs/blkid/src/topology/ioctl.c
shlibs/blkid/src/topology/sysfs.c
shlibs/blkid/src/topology/topology.c
shlibs/blkid/src/topology/topology.h