diff options
author | Karel Zak | 2017-07-14 10:51:14 +0200 |
---|---|---|
committer | Karel Zak | 2017-07-14 11:34:55 +0200 |
commit | 1dd63a3b05acd7640c688f9535508417fac950d1 (patch) | |
tree | 245abf4c0da52ec0d169dddd558b960e10526c7b /libfdisk/src/libfdisk.sym | |
parent | partx: move partx.h to include/ (diff) | |
download | kernel-qcow2-util-linux-1dd63a3b05acd7640c688f9535508417fac950d1.tar.gz kernel-qcow2-util-linux-1dd63a3b05acd7640c688f9535508417fac950d1.tar.xz kernel-qcow2-util-linux-1dd63a3b05acd7640c688f9535508417fac950d1.zip |
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>
Diffstat (limited to 'libfdisk/src/libfdisk.sym')
-rw-r--r-- | libfdisk/src/libfdisk.sym | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libfdisk/src/libfdisk.sym b/libfdisk/src/libfdisk.sym index 7b43f320e..7944538cf 100644 --- a/libfdisk/src/libfdisk.sym +++ b/libfdisk/src/libfdisk.sym @@ -286,4 +286,5 @@ FDISK_2.30 { FDISK_2.31 { fdisk_reassign_device; fdisk_device_is_used; + fdisk_reread_changes; } FDISK_2.30; |