]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Track Linux filesystem id (FSID) for quiesced (frozen) filesystems
authorKaty Feng <fkaty@vmware.com>
Wed, 18 Jan 2023 03:08:33 +0000 (19:08 -0800)
committerKaty Feng <fkaty@vmware.com>
Wed, 18 Jan 2023 03:08:33 +0000 (19:08 -0800)
commit9d458c53a7a656d4d1ba3a28d090cce82ac4af0e
tree84ce542714a13da6992df19560054d995ace8162
parent193200d3ce31461f876f4779ced3ca5c85f32459
Track Linux filesystem id (FSID) for quiesced (frozen) filesystems

Tracking the filesystem FSID along with each file descriptor (FD)
as the ioctl FIFREEZE is done.  An EBUSY could be seen because of
an attempt to freeze the same superblock more than once depending
on the OS configuration (e.g. usage of bind mounts).  An EBUSY could
also mean another process has locked or frozen that filesystem.

When an EBUSY is received, the filesyste FSID is checked against the
list of filesystems that have already be quiesced.  If not previously
seen, a warning that the filesystem is controlled by another process
is logged and the quiesced snapshot request will be rejected.
open-vm-tools/lib/syncDriver/syncDriverLinux.c