client/bin/partition.py: Execute blkid with -p
PATCH 1/1 client/bin/partition.py: Execute blkid with -p
The flag -p makes blkid bypass the UUID cache and read it directly from the device superblock, which gives information faster and more reliably.
We were seeing bugs where blkid was failing and making the mount info inconsistent. This works around the bug (the bug was reported anyway).
Signed-off-by Lucas Meneghel Rodrigues <[email protected]>
--- client/bin/partition.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
client/bin/partition.py +1 -1
@@ -185,7 +185,7 @@ def get_mount_info(partition_list): mount_info = set() for p in partition_list: try: - uuid = utils.system_output('blkid -s UUID -o value %s' % p.device) + uuid = utils.system_output('blkid -p -s UUID -o value %s' % p.device) except error.CmdError: # fall back to using the partition uuid = p.device
Signature · 1 line
1.7.2.3