commands-common.h (518b0d800b5ab046b72fac423ace7549ab187329) | commands-common.h (bad0001eeb34484c4595c3862e14a4ee22a3abee) |
---|---|
1/* 2 * QEMU Guest Agent common/cross-platform common commands 3 * 4 * Copyright (c) 2020 Red Hat, Inc. 5 * 6 * This work is licensed under the terms of the GNU GPL, version 2 or later. 7 * See the COPYING file in the top-level directory. 8 */ --- 9 unchanged lines hidden (view full) --- 18#ifdef FIFREEZE 19#define CONFIG_FSFREEZE 20#endif 21#ifdef FITRIM 22#define CONFIG_FSTRIM 23#endif 24#endif /* __linux__ */ 25 | 1/* 2 * QEMU Guest Agent common/cross-platform common commands 3 * 4 * Copyright (c) 2020 Red Hat, Inc. 5 * 6 * This work is licensed under the terms of the GNU GPL, version 2 or later. 7 * See the COPYING file in the top-level directory. 8 */ --- 9 unchanged lines hidden (view full) --- 18#ifdef FIFREEZE 19#define CONFIG_FSFREEZE 20#endif 21#ifdef FITRIM 22#define CONFIG_FSTRIM 23#endif 24#endif /* __linux__ */ 25 |
26#ifdef __FreeBSD__ 27#include <ufs/ffs/fs.h> 28#ifdef UFSSUSPEND 29#define CONFIG_FSFREEZE 30#endif 31#endif /* __FreeBSD__ */ 32 |
|
26#if defined(CONFIG_FSFREEZE) || defined(CONFIG_FSTRIM) 27typedef struct FsMount { 28 char *dirname; 29 char *devtype; 30 unsigned int devmajor, devminor; | 33#if defined(CONFIG_FSFREEZE) || defined(CONFIG_FSTRIM) 34typedef struct FsMount { 35 char *dirname; 36 char *devtype; 37 unsigned int devmajor, devminor; |
38#if defined(__FreeBSD__) 39 dev_t dev; 40 fsid_t fsid; 41#endif |
|
31 QTAILQ_ENTRY(FsMount) next; 32} FsMount; 33 34typedef QTAILQ_HEAD(FsMountList, FsMount) FsMountList; 35 36bool build_fs_mount_list(FsMountList *mounts, Error **errp); 37void free_fs_mount_list(FsMountList *mounts); 38#endif /* CONFIG_FSFREEZE || CONFIG_FSTRIM */ --- 28 unchanged lines hidden --- | 42 QTAILQ_ENTRY(FsMount) next; 43} FsMount; 44 45typedef QTAILQ_HEAD(FsMountList, FsMount) FsMountList; 46 47bool build_fs_mount_list(FsMountList *mounts, Error **errp); 48void free_fs_mount_list(FsMountList *mounts); 49#endif /* CONFIG_FSFREEZE || CONFIG_FSTRIM */ --- 28 unchanged lines hidden --- |