diff options
author | Alexander Ivanov <alexander.ivanov@virtuozzo.com> | 2022-10-17 09:28:21 +0200 |
---|---|---|
committer | Konstantin Kostiuk <kkostiuk@redhat.com> | 2022-10-26 20:35:07 +0300 |
commit | bad0001eeb34484c4595c3862e14a4ee22a3abee (patch) | |
tree | 6a2fc855fbe26494eca61307d503893cd50a4871 /qga/main.c | |
parent | 518b0d800b5ab046b72fac423ace7549ab187329 (diff) | |
download | qemu-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.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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__ |