Remove building with NOCRYPTO option
[minix3.git] / tests / fs / ffs / t_snapshot_log.c
blobe1ce17e1006a9c5ed82e86cfb516bcbba5c70000
1 /* $NetBSD: t_snapshot_log.c,v 1.2 2013/02/06 09:05:01 hannken Exp $ */
3 #include <sys/types.h>
4 #include <sys/mount.h>
6 #include <rump/rump.h>
7 #include <rump/rump_syscalls.h>
9 #include <ufs/ufs/ufsmount.h>
11 #include <atf-c.h>
12 #include <fcntl.h>
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <string.h>
16 #include <unistd.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"
25 static void
26 mount_diskfs(const char *fspec, const char *path)
28 struct ufs_args uargs;
29 static int flags = MNT_LOG;
31 uargs.fspec = __UNCONST(fspec);
33 if (rump_sys_mount(MOUNT_FFS,
34 path, flags, &uargs, sizeof(uargs)) == -1)
35 atf_tc_fail_errno("mount ffs %s", path);
36 flags = 0;
39 static void
40 begin(void)
43 /* empty */
46 #include "../common/snapshot.c"