Re: [PATCH]parted: acquire flock before modifying the device superblock
John Gilmore <[email protected]> Fri, 21 Oct 2022 01:36:53 -0700
| Newsgroups | gmane.comp.gnu.parted.devel,gmane.comp.gnu.parted.bugs |
|---|---|
| Message-ID | <[email protected]> |
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