]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: fdisk_deassign_device: only sync(2) blockdevs
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Sat, 13 Jan 2024 22:35:31 +0000 (23:35 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 15 Jan 2024 09:39:31 +0000 (10:39 +0100)
commit101dca2f18eb1435332a3faa8e15a1787f814887
treecad4f7c288780b0dd61000def309acf49068295f
parent0f80a913325f43f2f3fdb5bf5a56a5f0407560cc
libfdisk: fdisk_deassign_device: only sync(2) blockdevs

When not editing a blockdev, syncing disks provides no benefit
(we already fsync() above), takes a long time,
and affects unrelated caches.

BLKRRPART is similarly gated on !S_ISBLK(st_mode) in
fdisk_reread_partition_table.
libfdisk/src/context.c