GNU bug report logs - #58598
[PATCH]parted: acquire flock before modifying the device superblock

Previous Next

Package: parted;

Reported by: "zhanghongtao (A)" <zhanghongtao22 <at> huawei.com>

Date: Mon, 17 Oct 2022 23:04:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: John Gilmore <gnu <at> toad.com>
To: "zhanghongtao (A)" <zhanghongtao22 <at> huawei.com>
Cc: linfeilong <at> huawei.com, parted-devel <at> alioth-lists.debian.net, 58598 <at> debbugs.gnu.org, liuzhiqiang26 <at> huawei.com
Subject: bug#58598: [parted-devel] [PATCH]parted: acquire flock before modifying the device superblock 
Date: Fri, 21 Oct 2022 01:36:53 -0700
Parted shouldn't lock itself (or systemd) out of concurrent access
to the same device.  But if there is a bug relating to concurrent
"formatting a filesystem and systemd", then why not get an flock
just for the duration of formatting a file system?  Formatting
is a write-only operation and there's no point in trying to do two
of them concurrently on the same file system.

	John




This bug report was last modified 2 years and 241 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.