aboutsummaryrefslogtreecommitdiff
path: root/qga/main.c
diff options
context:
space:
mode:
authorAlexander Ivanov <alexander.ivanov@virtuozzo.com>2022-10-17 09:28:21 +0200
committerKonstantin Kostiuk <kkostiuk@redhat.com>2022-10-26 20:35:07 +0300
commitbad0001eeb34484c4595c3862e14a4ee22a3abee (patch)
tree6a2fc855fbe26494eca61307d503893cd50a4871 /qga/main.c
parent518b0d800b5ab046b72fac423ace7549ab187329 (diff)
downloadqemu-bad0001eeb34484c4595c3862e14a4ee22a3abee.zip
qemu-bad0001eeb34484c4595c3862e14a4ee22a3abee.tar.gz
qemu-bad0001eeb34484c4595c3862e14a4ee22a3abee.tar.bz2
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>
Diffstat (limited to 'qga/main.c')
-rw-r--r--qga/main.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/qga/main.c b/qga/main.c
index 0d27c97..b358050 100644
--- a/qga/main.c
+++ b/qga/main.c
@@ -37,12 +37,7 @@
#include "qga/service-win32.h"
#include "qga/vss-win32.h"
#endif
-#ifdef __linux__
-#include <linux/fs.h>
-#ifdef FIFREEZE
-#define CONFIG_FSFREEZE
-#endif
-#endif
+#include "commands-common.h"
#ifndef _WIN32
#ifdef __FreeBSD__