]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: use BLKPG ioctls to inform kernel about changes
authorKarel Zak <kzak@redhat.com>
Fri, 14 Jul 2017 08:51:14 +0000 (10:51 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 14 Jul 2017 09:34:55 +0000 (11:34 +0200)
commit1dd63a3b05acd7640c688f9535508417fac950d1
tree245abf4c0da52ec0d169dddd558b960e10526c7b
parent87d04a3339252c023bf9025c38c0ec7d3f5ee817
libfdisk: use BLKPG ioctls to inform kernel about changes

This patch introduces fdisk_reread_changes(). The function is
less invasive alternative to fdisk_reread_partition_table().

The new function uses BLKPG ioctls for modified partitions. The
another partitions are not affected. This solution allows to
successfully use fdisks on disk where some partitions are still use
(mounted). For example if you want to resize the last partition on the
device.

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/docs/libfdisk-sections.txt
libfdisk/src/context.c
libfdisk/src/fdiskP.h
libfdisk/src/libfdisk.h.in
libfdisk/src/libfdisk.sym
libfdisk/src/table.c