MP
#define VFS_VGET(MP, INO, LK, VPP) (*(MP)->mnt_op->vfs_vget)(MP, INO, LK, VPP)
#define VFS_LOADVNODE(MP, VP, KEY, KEY_LEN, NEW_KEY) \
(*(MP)->mnt_op->vfs_loadvnode)(MP, VP, KEY, KEY_LEN, NEW_KEY)
#define VFS_NEWVNODE(MP, DVP, VP, VAP, CRED, EXTRA, NEW_LEN, NEW_KEY) \
(*(MP)->mnt_op->vfs_newvnode)(MP, DVP, VP, VAP, CRED, EXTRA, \
#define VFS_RENAMELOCK_ENTER(MP) (*(MP)->mnt_op->vfs_renamelock_enter)(MP)
#define VFS_RENAMELOCK_EXIT(MP) (*(MP)->mnt_op->vfs_renamelock_exit)(MP)
#define VFS_FSYNC(MP, VP, FLG) (*(MP)->mnt_op->vfs_fsync)(VP, FLG)
#define WAPBL_DISCARD(MP) \
(*(MP)->mnt_wapbl_op->wo_wapbl_discard)((MP)->mnt_wapbl)
#define WAPBL_REPLAY_ISOPEN(MP) \
(*(MP)->mnt_wapbl_op->wo_wapbl_replay_isopen)((MP)->mnt_wapbl_replay)
#define WAPBL_REPLAY_CAN_READ(MP, BLK, LEN) \
(*(MP)->mnt_wapbl_op->wo_wapbl_replay_can_read)((MP)->mnt_wapbl_replay, \
#define WAPBL_REPLAY_READ(MP, DATA, BLK, LEN) \
(*(MP)->mnt_wapbl_op->wo_wapbl_replay_read)((MP)->mnt_wapbl_replay, \
#define WAPBL_ADD_BUF(MP, BP) \
(*(MP)->mnt_wapbl_op->wo_wapbl_add_buf)((MP)->mnt_wapbl, (BP))
#define WAPBL_REMOVE_BUF(MP, BP) \
(*(MP)->mnt_wapbl_op->wo_wapbl_remove_buf)((MP)->mnt_wapbl, (BP))
#define WAPBL_RESIZE_BUF(MP, BP, OLDSZ, OLDCNT) \
(*(MP)->mnt_wapbl_op->wo_wapbl_resize_buf)((MP)->mnt_wapbl, (BP), \
#define WAPBL_BEGIN(MP) \
(*(MP)->mnt_wapbl_op->wo_wapbl_begin)((MP)->mnt_wapbl, \
#define WAPBL_END(MP) \
(*(MP)->mnt_wapbl_op->wo_wapbl_end)((MP)->mnt_wapbl)
#define WAPBL_JUNLOCK_ASSERT(MP) \
(*(MP)->mnt_wapbl_op->wo_wapbl_junlock_assert)((MP)->mnt_wapbl)
#define WAPBL_JLOCK_ASSERT(MP) \
(*(MP)->mnt_wapbl_op->wo_wapbl_jlock_assert)((MP)->mnt_wapbl)
if (rump_sys_mount(MOUNT_LFS, MP, 0, argsp, sizeof *argsp) == -1)
fd = rump_sys_open(MP, O_RDONLY);
if (rump_sys_unmount(MP, 0) < 0)
if (rump_sys_mount(MOUNT_LFS, MP, 0, argsp, sizeof *argsp) == -1)
if (rump_sys_unmount(MP, 0) < 0)
#define UNCHANGED_CONTROL MP "/3-a-random-file"
sprintf(filename, "%s/%d", MP, i);
sprintf(filename, "%s/%d", MP, i);
if (rump_sys_mkdir(MP, 0777) == -1)
if (rump_sys_mount(MOUNT_LFS, MP, 0, &args, sizeof args) == -1)
if (rump_sys_unmount(MP, 0) != 0)
#define UNCHANGED_CONTROL MP "/3-a-random-file"
if (rump_sys_mkdir(MP, 0777) == -1)
if (rump_sys_mount(MOUNT_LFS, MP, 0, &args, sizeof args) == -1)
if (rump_sys_mount(MOUNT_LFS, MP, 0, &args, sizeof(args)) == -1)
fd = rump_sys_open(MP, O_RDONLY);
rump_sys_unmount(MP, 0);
if (rump_sys_mount(MOUNT_LFS, MP, 0, &args, sizeof(args)) == -1)
fd = rump_sys_open(MP, O_RDONLY);
if (rump_sys_unmount(MP, 0) != 0)
if (rump_sys_mount(MOUNT_LFS, MP, 0, &args, sizeof(args)) == -1)
rump_sys_unmount(MP, 0);
#define UNCHANGED_CONTROL MP "/3-a-random-file"
if (rump_sys_mount(MOUNT_LFS, MP, 0, &args, sizeof(args)) == -1)
rump_sys_unmount(MP, 0);
rump_sys_unmount(MP, 0);
if (rump_sys_mount(MOUNT_LFS, MP, 0, &args, sizeof(args)) == -1)
rump_sys_unmount(MP, 0);
if (rump_sys_mount(MOUNT_LFS, MP, 0, &args, sizeof(args)) == -1)
if (rump_sys_unmount(MP, 0) != 0)
if (rump_sys_mount(MOUNT_LFS, MP, 0, &args, sizeof(args)) == -1)
rump_sys_unmount(MP, 0);
#define UNCHANGED_CONTROL MP "/3-unchanged-control"
#define TO_BE_DELETED MP "/4-to-be-deleted"
#define TO_BE_APPENDED MP "/5-to-be-appended"
#define NEWLY_CREATED MP "/6-newly-created"
if (rump_sys_mount(MOUNT_LFS, MP, 0, &args, sizeof(args)) == -1)
if (rump_sys_mkdir(MP, 0777) == -1)
RL(rump_sys_mkdir(MP, 0777));
RL(rump_sys_mount(MOUNT_TMPFS, MP, MNT_ASYNC, &args, sizeof(args)));
RL(rump_sys_chdir(MP));
RZ(rump_pub_namei(RUMP_NAMEI_LOOKUP, 0, MP, NULL, &vp, NULL));
ATF_REQUIRE_ERRNO(EBUSY, rump_sys_unmount(MP, 0) == -1);
return MP(sfmtint(src, p, (int)(mp->m_lines - mp->m_blines)));
return MP(sfmtint(src, p, (int)mp->m_blines));
return MP(sfmtint(src, p, (int)mp->m_lines));
return MP(sfmtoff(src, p, mp->m_size));
return MP(sfmtstr(src, p, mp == dot ? ">" : " "));
return MP(sfmtflag(src, p, mp));