1 /* $NetBSD: t_snapshot.c,v 1.6 2013/02/06 09:05:01 hannken Exp $ */
7 #include <rump/rump_syscalls.h>
9 #include <ufs/ufs/ufsmount.h>
18 #include "../../h_macros.h"
20 #define IMGNAME "ffs.img"
21 #define NEWFS "newfs -F -s 10000 " IMGNAME
22 #define FSCK "fsck_ffs -fn -F"
23 #define BAKNAME "/mnt/le_snapp"
26 mount_diskfs(const char *fspec, const char *path)
28 struct ufs_args uargs;
30 uargs.fspec = __UNCONST(fspec);
32 if (rump_sys_mount(MOUNT_FFS, path, 0, &uargs, sizeof(uargs)) == -1)
33 atf_tc_fail_errno("mount ffs %s", path);
43 #include "../common/snapshot.c"