]> git.proxmox.com Git - mirror_qemu.git/commit - qga/main.c
qga: Add UFS freeze/thaw support for FreeBSD
authorAlexander Ivanov <alexander.ivanov@virtuozzo.com>
Mon, 17 Oct 2022 07:28:21 +0000 (09:28 +0200)
committerKonstantin Kostiuk <kkostiuk@redhat.com>
Wed, 26 Oct 2022 17:35:07 +0000 (20:35 +0300)
commitbad0001eeb34484c4595c3862e14a4ee22a3abee
tree6a2fc855fbe26494eca61307d503893cd50a4871
parent518b0d800b5ab046b72fac423ace7549ab187329
qga: Add UFS freeze/thaw support for FreeBSD

UFS supports FS freezing through ioctl UFSSUSPEND on /dev/ufssuspend.
Frozen FS can be thawed by closing /dev/ufssuspend file descriptior.

Use getmntinfo to get a list of mounted FS.

Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
qga/commands-bsd.c [new file with mode: 0644]
qga/commands-common.h
qga/commands-posix.c
qga/main.c
qga/meson.build