003 File Manager
Current Path:
/usr/src/contrib/netbsd-tests/fs/ffs
usr
/
src
/
contrib
/
netbsd-tests
/
fs
/
ffs
/
📁
..
📄
ffs_common.sh
(2.12 KB)
📄
h_ffs_server.c
(1.93 KB)
📄
h_quota2_tests.c
(9.72 KB)
📄
quotas_common.sh
(376 B)
📄
t_clearquota.sh
(3.07 KB)
📄
t_fifos.c
(3.21 KB)
📄
t_getquota.sh
(3.23 KB)
📄
t_miscquota.sh
(5.92 KB)
📄
t_mount.c
(2.98 KB)
📄
t_quota2_1.c
(3.02 KB)
📄
t_quota2_remount.c
(3.73 KB)
📄
t_quotalimit.sh
(10.13 KB)
📄
t_setquota.sh
(6.44 KB)
📄
t_snapshot.c
(792 B)
📄
t_snapshot_log.c
(846 B)
📄
t_snapshot_v2.c
(800 B)
Editing: t_snapshot_v2.c
/* $NetBSD: t_snapshot_v2.c,v 1.3 2017/01/13 21:30:39 christos Exp $ */ #include <sys/types.h> #include <sys/mount.h> #include <rump/rump.h> #include <rump/rump_syscalls.h> #include <ufs/ufs/ufsmount.h> #include <atf-c.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "h_macros.h" #define IMGNAME "ffs.img" #define NEWFS "newfs -F -s 10000 -O 2 " IMGNAME #define FSCK "fsck_ffs -fn -F" #define BAKNAME "/mnt/le_snapp" static void mount_diskfs(const char *fspec, const char *path) { struct ufs_args uargs; uargs.fspec = __UNCONST(fspec); if (rump_sys_mount(MOUNT_FFS, path, 0, &uargs, sizeof(uargs)) == -1) atf_tc_fail_errno("mount ffs %s", path); } static void begin(void) { /* empty */ } #include "../common/snapshot.c"
Upload File
Create Folder