/freebsd/tests/sys/fs/fusefs/ |
H A D | xattr.cc | 63 void expect_listxattr(uint64_t ino, uint32_t size, ProcessMockerT r, in expect_listxattr() argument 70 in.header.nodeid == ino && in expect_listxattr() 80 in.header.nodeid == ino && in expect_listxattr() 90 void expect_removexattr(uint64_t ino, const char *attr, int error) in expect_removexattr() argument 96 in.header.nodeid == ino && in expect_removexattr() 103 void expect_setxattr(uint64_t ino, const char *attr, const char *value, in expect_setxattr() argument 112 in.header.nodeid == ino && in expect_setxattr() 172 uint64_t ino = 42; in TEST_F() local 176 expect_lookup(RELPATH, ino, S_IFREG | 0644, 0, 1); in TEST_F() 177 expect_getxattr(ino, "user.foo", ReturnErrno(ENOATTR)); in TEST_F() [all …]
|
H A D | write.cc | 67 void expect_lookup(const char *relpath, uint64_t ino, uint64_t size) in expect_lookup() argument 69 FuseTest::expect_lookup(relpath, ino, S_IFREG | 0644, size, 1); in expect_lookup() 72 void expect_release(uint64_t ino, ProcessMockerT r) in expect_release() argument 77 in.header.nodeid == ino); in expect_release() 83 void expect_write(uint64_t ino, uint64_t offset, uint64_t isize, in expect_write() argument 86 FuseTest::expect_write(ino, offset, isize, osize, 0, 0, contents); in expect_write() 90 void maybe_expect_write(uint64_t ino, uint64_t offset, uint64_t size, in maybe_expect_write() argument 101 in.header.nodeid == ino && in maybe_expect_write() 126 void expect_lookup(const char *relpath, uint64_t ino, uint64_t size) in expect_lookup() argument 128 FuseTest::expect_lookup_7_8(relpath, ino, S_IFREG | 0644, size, 1); in expect_lookup() [all …]
|
H A D | fsync.cc | 53 void expect_fsync(uint64_t ino, uint32_t flags, int error, int times = 1) in expect_fsync() argument 58 in.header.nodeid == ino && in expect_fsync() 72 void expect_lookup(const char *relpath, uint64_t ino, int times = 1) in expect_lookup() argument 74 FuseTest::expect_lookup(relpath, ino, S_IFREG | 0644, 0, times); in expect_lookup() 77 void expect_write(uint64_t ino, uint64_t size, const void *contents) in expect_write() argument 79 FuseTest::expect_write(ino, 0, size, size, 0, 0, contents); in expect_write() 100 uint64_t ino = 42; in TEST_F() local 104 expect_lookup(RELPATH, ino); in TEST_F() 105 expect_open(ino, 0, 1); in TEST_F() 106 expect_write(ino, bufsize, CONTENTS); in TEST_F() [all …]
|
H A D | release.cc | 44 void expect_lookup(const char *relpath, uint64_t ino, int times) in expect_lookup() argument 46 FuseTest::expect_lookup(relpath, ino, S_IFREG | 0644, 0, times); in expect_lookup() 49 void expect_release(uint64_t ino, uint64_t lock_owner, in expect_release() argument 55 in.header.nodeid == ino && in expect_release() 79 uint64_t ino = 42; in TEST_F() local 82 expect_lookup(RELPATH, ino, 1); in TEST_F() 83 expect_open(ino, 0, 1); in TEST_F() 84 expect_flush(ino, 1, ReturnErrno(0)); in TEST_F() 85 expect_release(ino, getpid(), O_RDONLY, 0); in TEST_F() 109 uint64_t ino = 42; in TEST_F() local [all …]
|
H A D | access.cc | 52 void expect_lookup(const char *relpath, uint64_t ino) in expect_lookup() argument 54 FuseTest::expect_lookup(relpath, ino, S_IFREG | 0644, 0, 1); in expect_lookup() 61 void expect_noaccess(uint64_t ino, mode_t access_mask) in expect_noaccess() argument 66 in.header.nodeid == ino && in expect_noaccess() 94 const uint64_t ino = 42; in TEST_F() local 98 expect_lookup(RELPATH, ino); in TEST_F() 99 expect_noaccess(ino, 0); in TEST_F() 103 in.header.nodeid == ino); in TEST_F() 108 out.body.attr.attr.ino = ino; // Must match nodeid in TEST_F() 127 uint64_t ino = 42; in TEST_F() local [all …]
|
H A D | fsyncdir.cc | 53 void expect_fsyncdir(uint64_t ino, uint32_t flags, int error) in expect_fsyncdir() argument 58 in.header.nodeid == ino && in expect_fsyncdir() 71 void expect_lookup(const char *relpath, uint64_t ino) in expect_lookup() argument 73 FuseTest::expect_lookup(relpath, ino, S_IFDIR | 0755, 0, 1); in expect_lookup() 92 uint64_t ino = 42; in TEST_F() local 96 expect_lookup(RELPATH, ino); in TEST_F() 97 expect_opendir(ino); in TEST_F() 98 expect_fsyncdir(ino, 0, 0); in TEST_F() 116 uint64_t ino = 42; in TEST_F() local 119 expect_lookup(RELPATH, ino); in TEST_F() [all …]
|
H A D | read.cc | 54 void expect_lookup(const char *relpath, uint64_t ino, uint64_t size) in expect_lookup() argument 56 FuseTest::expect_lookup(relpath, ino, S_IFREG | 0644, size, 1); in expect_lookup() 75 void expect_lookup(const char *relpath, uint64_t ino, uint64_t size) in expect_lookup() argument 77 FuseTest::expect_lookup_7_8(relpath, ino, S_IFREG | 0644, size, 1); in expect_lookup() 170 uint64_t ino = 42; in TEST_F() local 176 expect_lookup(RELPATH, ino, bufsize); in TEST_F() 177 expect_open(ino, 0, 1); in TEST_F() 178 expect_read(ino, 0, bufsize, bufsize, CONTENTS); in TEST_F() 203 uint64_t ino = 42; in TEST_F() local 212 expect_lookup(RELPATH, ino, 131072); in TEST_F() [all …]
|
H A D | default_permissions.cc | 72 void expect_chmod(uint64_t ino, mode_t mode, uint64_t size = 0) in expect_chmod() argument 77 in.header.nodeid == ino && in expect_chmod() 84 out.body.attr.attr.ino = ino; // Must match nodeid in expect_chmod() 91 void expect_create(const char *relpath, uint64_t ino) in expect_create() argument 104 out.body.create.entry.nodeid = ino; in expect_create() 129 void expect_getattr(uint64_t ino, mode_t mode, uint64_t attr_valid, int times, in expect_getattr() argument 135 in.header.nodeid == ino); in expect_getattr() 141 out.body.attr.attr.ino = ino; // Must match nodeid in expect_getattr() 150 void expect_lookup(const char *relpath, uint64_t ino, mode_t mode, in expect_lookup() argument 153 FuseTest::expect_lookup(relpath, ino, mode, 0, 1, attr_valid, uid, gid); in expect_lookup() [all …]
|
H A D | fallocate.cc | 58 void expect_vop_stddeallocate(uint64_t ino, uint64_t off, uint64_t length) in expect_vop_stddeallocate() argument 64 in.header.nodeid == ino && in expect_vop_stddeallocate() 84 in.header.nodeid == ino && in expect_vop_stddeallocate() 185 uint64_t ino = 42; in TEST_F() local 192 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F() 193 expect_open(ino, 0, 1); in TEST_F() 194 expect_fallocate(ino, off0, len0, in TEST_F() 196 expect_vop_stddeallocate(ino, off0, len0); in TEST_F() 197 expect_vop_stddeallocate(ino, off2, len2); in TEST_F() 225 uint64_t ino = 42; in TEST_F() local [all …]
|
H A D | opendir.cc | 45 void expect_lookup(const char *relpath, uint64_t ino) in expect_lookup() argument 47 FuseTest::expect_lookup(relpath, ino, S_IFDIR | 0755, 0, 1); in expect_lookup() 50 void expect_opendir(uint64_t ino, uint32_t flags, ProcessMockerT r) in expect_opendir() argument 65 in.header.nodeid == ino && in expect_opendir() 84 uint64_t ino = 42; in TEST_F() local 89 expect_lookup(RELPATH, ino); in TEST_F() 90 expect_opendir(ino, O_RDONLY, ReturnErrno(ENOENT)); in TEST_F() 93 expect_forget(ino, 1, &sem); in TEST_F() 110 uint64_t ino = 42; in TEST_F() local 112 expect_lookup(RELPATH, ino); in TEST_F() [all …]
|
H A D | locks.cc | 48 void expect_lookup(const char *relpath, uint64_t ino, uint64_t size = 0) in expect_lookup() argument 50 FuseTest::expect_lookup(relpath, ino, S_IFREG | 0644, size, 1); in expect_lookup() 65 void expect_setlk(uint64_t ino, pid_t pid, uint64_t start, uint64_t end, in expect_setlk() argument 71 in.header.nodeid == ino && in expect_setlk() 82 void expect_setlkw(uint64_t ino, pid_t pid, uint64_t start, uint64_t end, in expect_setlkw() argument 88 in.header.nodeid == ino && in expect_setlkw() 103 void expect_setlk(uint64_t ino, uint32_t type, int err) in expect_setlk() argument 108 in.header.nodeid == ino && in expect_setlk() 138 uint64_t ino = 42; in TEST_F() local 141 expect_lookup(RELPATH, ino); in TEST_F() [all …]
|
H A D | readdir.cc | 44 void expect_lookup(const char *relpath, uint64_t ino) in expect_lookup() argument 46 FuseTest::expect_lookup(relpath, ino, S_IFDIR | 0755, 0, 1); in expect_lookup() 57 void expect_lookup(const char *relpath, uint64_t ino) in expect_lookup() argument 59 FuseTest::expect_lookup_7_8(relpath, ino, S_IFDIR | 0755, 0, 1); in expect_lookup() 71 uint64_t ino = 42; in TEST_F() local 77 expect_lookup(RELPATH, ino); in TEST_F() 78 expect_opendir(ino); in TEST_F() 89 expect_readdir(ino, 0, ents); in TEST_F() 90 expect_readdir(ino, 3000, empty_ents); in TEST_F() 122 uint64_t ino = 42; in TEST_F() local [all …]
|
H A D | lseek.cc | 59 const uint64_t ino = 42; in TEST_F() local 64 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F() 65 expect_open(ino, 0, 1); in TEST_F() 92 const uint64_t ino = 42; in TEST_F() local 97 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F() 98 expect_open(ino, 0, 1); in TEST_F() 126 const uint64_t ino = 42; in TEST_F() local 134 out.body.entry.nodeid = ino; in TEST_F() 140 in.header.nodeid == ino); in TEST_F() 161 const uint64_t ino = 42; in TEST_F() local [all …]
|
H A D | unlink.cc | 41 void expect_lookup(const char *relpath, uint64_t ino, int times, int nlink=1) 49 out.body.entry.nodeid = ino; in expect_lookup() 69 uint64_t ino = 42; in TEST_F() 73 expect_lookup(RELPATH0, ino, 1, 2); in TEST_F() 74 expect_lookup(RELPATH1, ino, 1, 2); in TEST_F() 75 expect_open(ino, 0, 1); in TEST_F() 99 uint64_t ino = 42; in TEST_F() 103 expect_lookup(RELPATH, ino, 1, 2); in TEST_F() 122 out.body.attr.attr.ino = FUSE_ROOT_ID; in TEST_F() 135 uint64_t ino in TEST_F() 42 expect_lookup(const char * relpath,uint64_t ino,int times,int nlink=1) expect_lookup() argument 70 uint64_t ino = 42; TEST_F() local 100 uint64_t ino = 42; TEST_F() local 136 uint64_t ino = 42; TEST_F() local 152 uint64_t ino = 42; TEST_F() local 171 uint64_t ino = 42; TEST_F() local 198 uint64_t ino = 42; TEST_F() local 219 uint64_t ino = 42; TEST_F() local [all...] |
H A D | getattr.cc | 44 void expect_lookup(const char *relpath, uint64_t ino, mode_t mode, in expect_lookup() argument 52 out.body.entry.nodeid = ino; in expect_lookup() 78 const uint64_t ino = 42; in TEST_F() local 85 out.body.entry.nodeid = ino; in TEST_F() 91 in.header.nodeid == ino); in TEST_F() 97 out.body.attr.attr.ino = ino; // Must match nodeid in TEST_F() 114 const uint64_t ino = 42; in TEST_F() local 117 expect_lookup(RELPATH, ino, S_IFREG | 0644, 0, 1, 0, 0); in TEST_F() 121 in.header.nodeid == ino); in TEST_F() 129 out.body.attr.attr.ino = ino; // Must match nodeid in TEST_F() [all …]
|
H A D | releasedir.cc | 44 void expect_lookup(const char *relpath, uint64_t ino) in expect_lookup() argument 46 FuseTest::expect_lookup(relpath, ino, S_IFDIR | 0755, 0, 1); in expect_lookup() 55 uint64_t ino = 42; in TEST_F() local 58 expect_lookup(RELPATH, ino); in TEST_F() 59 expect_opendir(ino); in TEST_F() 63 in.header.nodeid == ino && in TEST_F() 71 expect_releasedir(ino, ReturnErrno(0)); in TEST_F() 87 uint64_t ino = 42; in TEST_F() local 90 expect_lookup(RELPATH, ino); in TEST_F() 91 expect_opendir(ino); in TEST_F() [all …]
|
H A D | flush.cc | 45 expect_flush(uint64_t ino, int times, pid_t lo, ProcessMockerT r) in expect_flush() argument 50 in.header.nodeid == ino && in expect_flush() 59 void expect_lookup(const char *relpath, uint64_t ino, int times) in expect_lookup() argument 61 FuseTest::expect_lookup(relpath, ino, S_IFREG | 0644, 0, times); in expect_lookup() 94 uint64_t ino = 42; in TEST_F() local 97 expect_lookup(RELPATH, ino, 2); in TEST_F() 98 expect_open(ino, 0, 1); in TEST_F() 99 expect_flush(ino, 2, getpid(), ReturnErrno(0)); in TEST_F() 124 uint64_t ino = 42; in TEST_F() local 127 expect_lookup(RELPATH, ino, 1); in TEST_F() [all …]
|
H A D | nfs.cc | 77 const uint64_t ino = 42; in TEST_F() local 86 out.body.entry.nodeid = ino; in TEST_F() 92 EXPECT_LOOKUP(ino, ".") in TEST_F() 97 out.body.entry.nodeid = ino; in TEST_F() 115 const uint64_t ino = 42; in TEST_F() local 123 out.body.entry.nodeid = ino; in TEST_F() 130 EXPECT_LOOKUP(ino, ".") in TEST_F() 134 out.body.entry.nodeid = ino; in TEST_F() 154 const uint64_t ino = 42; in TEST_F() local 162 out.body.entry.nodeid = ino; in TEST_F() [all …]
|
H A D | setattr.cc | 84 const uint64_t ino = 42; in TEST_F() local 92 out.body.entry.nodeid = ino; in TEST_F() 99 in.header.nodeid == ino); in TEST_F() 104 out.body.attr.attr.ino = ino; // Must match nodeid in TEST_F() 128 const uint64_t ino = 42; in TEST_F() local 136 out.body.entry.nodeid = ino; in TEST_F() 143 in.header.nodeid == ino && in TEST_F() 150 out.body.attr.attr.ino = ino; // Must match nodeid in TEST_F() 167 const uint64_t ino = 42; in TEST_F() local 175 out.body.entry.nodeid = ino; in TEST_F() [all …]
|
H A D | cache.cc | 83 void expect_getattr(uint64_t ino, int times, uint64_t size, uint64_t attr_valid) in expect_getattr() argument 88 in.header.nodeid == ino); in expect_getattr() 95 out.body.attr.attr.ino = ino; in expect_getattr() 101 void expect_lookup(const char *relpath, uint64_t ino, in expect_lookup() argument 108 out.body.entry.nodeid = ino; in expect_lookup() 116 void expect_open(uint64_t ino, int times) in expect_open() argument 118 FuseTest::expect_open(ino, m_direct_io ? FOPEN_DIRECT_IO: 0, times); in expect_open() 121 void expect_release(uint64_t ino, ProcessMockerT r) in expect_release() argument 126 in.header.nodeid == ino); in expect_release() 141 uint64_t ino = 42; in TEST_P() local [all …]
|
H A D | open.cc | 51 uint64_t ino = 42; in test_ok() local 54 FuseTest::expect_lookup(RELPATH, ino, S_IFREG | 0644, 0, 1); in test_ok() 59 in.header.nodeid == ino); in test_ok() 81 uint64_t ino = 42; in TEST_F() local 87 out.body.entry.nodeid = ino; in TEST_F() 106 uint64_t ino = 42; in TEST_F() local 111 expect_lookup(RELPATH, ino, S_IFREG | 0644, 0, 1); in TEST_F() 115 in.header.nodeid == ino); in TEST_F() 121 expect_forget(ino, 1, &sem); in TEST_F() 138 uint64_t ino = 42; in TEST_F() local [all …]
|
H A D | notify.cc | 53 void maybe_expect_fsync(uint64_t ino) in maybe_expect_fsync() argument 58 in.header.nodeid == ino); in maybe_expect_fsync() 64 void expect_lookup(uint64_t parent, const char *relpath, uint64_t ino, in expect_lookup() argument 73 out.body.entry.nodeid = ino; in expect_lookup() 74 out.body.entry.attr.ino = ino; in expect_lookup() 93 void expect_write(uint64_t ino, uint64_t offset, uint64_t size, in expect_write() argument 96 FuseTest::expect_write(ino, offset, size, size, 0, 0, contents); in expect_write() 121 ino_t ino; member 138 r = iia->mock->notify_inval_inode(iia->ino, iia->off, iia->len); in inval_inode() 268 uint64_t ino = 42; in TEST_F() local [all …]
|
/freebsd/sbin/growfs/ |
H A D | debug.c | 663 dbg_dump_ufs1_ino(struct fs *sb, const char *comment, struct ufs1_dinode *ino) 672 fprintf(dbg_log, "# %d@%lx: %s\n", indent, (unsigned long)ino, comment); in dbg_dump_ufs1_ino() 675 fprintf(dbg_log, "mode u_int16_t 0%o\n", ino->di_mode); in dbg_dump_ufs1_ino() 676 fprintf(dbg_log, "nlink int16_t 0x%04x\n", ino->di_nlink); in dbg_dump_ufs1_ino() 678 ((unsigned int *)&(ino->di_size))[1], in dbg_dump_ufs1_ino() 679 ((unsigned int *)&(ino->di_size))[0]); in dbg_dump_ufs1_ino() 680 fprintf(dbg_log, "atime int32_t 0x%08x\n", ino->di_atime); in dbg_dump_ufs1_ino() 682 ino->di_atimensec); in dbg_dump_ufs1_ino() 684 ino->di_mtime); in dbg_dump_ufs1_ino() 686 ino in dbg_dump_ufs1_ino() 665 dbg_dump_ufs1_ino(struct fs * sb,const char * comment,struct ufs1_dinode * ino) dbg_dump_ufs1_ino() argument 732 dbg_dump_ufs2_ino(struct fs * sb,const char * comment,struct ufs2_dinode * ino) dbg_dump_ufs2_ino() argument [all...] |
/freebsd/sbin/dump/ |
H A D | traverse.c | 67 static int dirindir(ino_t ino, ufs2_daddr_t blkno, int level, long *size, 69 static void dmpindir(union dinode *dp, ino_t ino, ufs2_daddr_t blk, int level, 71 static void ufs1_blksout(ufs1_daddr_t *blkp, int frags, ino_t ino); 73 ino_t ino, int last); 75 static void writeextdata(union dinode *dp, ino_t ino, int added); 76 static int searchdir(ino_t ino, ufs2_daddr_t blkno, long size, long filesize, 147 ino_t ino; in mapfiles() 153 ino = cg * sblock->fs_ipg; in mapfiles() 184 for (i = 0; i < inosused; i++, ino++) { in mapfiles() 185 if (ino < UFS_ROOTIN in mapfiles() 151 ino_t ino; mapfiles() local 251 ino_t ino; mapdirs() local 323 dirindir(ino_t ino,ufs2_daddr_t blkno,int ind_level,long * filesize,long * tapesize,int nodump,ino_t maxino) dirindir() argument 375 searchdir(ino_t ino,ufs2_daddr_t blkno,long size,long filesize,long * tapesize,int nodump,ino_t maxino) searchdir() argument 452 dumpino(union dinode * dp,ino_t ino) dumpino() argument 573 dmpindir(union dinode * dp,ino_t ino,ufs2_daddr_t blk,int ind_level,off_t * size) dmpindir() argument 617 ufs1_blksout(ufs1_daddr_t * blkp,int frags,ino_t ino) ufs1_blksout() argument 653 ufs2_blksout(union dinode * dp,ufs2_daddr_t * blkp,int frags,ino_t ino,int last) ufs2_blksout() argument 764 writeextdata(union dinode * dp,ino_t ino,int added) writeextdata() argument 824 dumpmap(char * map,int type,ino_t ino) dumpmap() argument 840 writeheader(ino_t ino) writeheader() argument [all...] |
/freebsd/sbin/restore/ |
H A D | restore.c | 51 listfile(char *name, ino_t ino, int type) in listfile() argument 55 if (TSTINO(ino, dumpmap) == 0) in listfile() 58 fprintf(stdout, "%10ju\t%s\n", (uintmax_t)ino, name); in listfile() 67 addfile(char *name, ino_t ino, int type) in addfile() argument 73 if (TSTINO(ino, dumpmap) == 0) { in addfile() 77 if (ino == UFS_WINO && command == 'i' && !vflag) in addfile() 80 (void) sprintf(buf, "./%ju", (uintmax_t)ino); in addfile() 83 (void) genliteraldir(name, ino); in addfile() 87 ep = lookupino(ino); in addfile() 95 ep = addentry(name, ino, type); in addfile() [all …]
|