Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 10 of 10) sorted by relevance

/sys/fs/o2fs/
Do2fs.c47 SuperBlock *sb; in O2FS_Mount() local
61 sb = entry->buffer; in O2FS_Mount()
62 if (memcmp(sb->magic, SUPERBLOCK_MAGIC, 8) != 0) { in O2FS_Mount()
67 if (sb->versionMajor != O2FS_VERSION_MAJOR || in O2FS_Mount()
68 sb->versionMinor != O2FS_VERSION_MINOR) { in O2FS_Mount()
75 for (int i = 0; i < sb->bitmapSize; i++) { in O2FS_Mount()
79 uint64_t offset = sb->bitmapOffset + i * sb->blockSize; in O2FS_Mount()
93 DLOG(o2fs, "Root @ 0x%llx\n", sb->root.offset); in O2FS_Mount()
96 fs->fsval = sb->root.offset; in O2FS_Mount()
97 fs->blksize = sb->blockSize; in O2FS_Mount()
[all …]
/bin/stat/
Dstat.c15 struct stat sb; in main() local
27 status = OSStat(argv[1], &sb); in main()
34 printf(" Size: %d\n", sb.st_size); in main()
35 printf("Blocks: %d\n", sb.st_blocks); in main()
36 printf(" Inode: %d\n", sb.st_ino); in main()
/bin/cat/
Dcat.c17 struct stat sb; in main() local
30 status = OSStat(argv[1], &sb); in main()
36 for (i = 0; i < sb.st_size; i += 256) { in main()
37 int len = (sb.st_size - i > 256) ? 256 : (sb.st_size - i); in main()
/sbin/newfs_o2fs/
Dnewfs_o2fs.c270 SuperBlock sb; in Superblock() local
272 memset(&sb, 0, sizeof(sb)); in Superblock()
273 memcpy(sb.magic, SUPERBLOCK_MAGIC, 8); in Superblock()
274 sb.versionMajor = O2FS_VERSION_MAJOR; in Superblock()
275 sb.versionMinor = O2FS_VERSION_MINOR; in Superblock()
276 sb.blockCount = diskSize / blockSize; in Superblock()
277 sb.blockSize = blockSize; in Superblock()
278 sb.bitmapSize = bitmapSize; in Superblock()
279 sb.bitmapOffset = blockSize; in Superblock()
282 memcpy(&sb.root, objid, sizeof(ObjID)); in Superblock()
[all …]
/bin/shell/
Dshell.c70 struct stat sb; in Cmd_Run() local
80 status = OSStat(path, &sb); in Cmd_Run()
/sys/include/
Dvfs.h46 int (*stat)(VNode *fn, struct stat *sb);
55 int VFS_Stat(const char *path, struct stat *sb);
/sys/kern/
Dvfs.c124 VFS_Stat(const char *path, struct stat *sb) in VFS_Stat() argument
130 vn->op->stat(vn, sb); in VFS_Stat()
Dsyscall.c336 struct stat sb; in Syscall_Stat() local
344 status = VFS_Stat(path, &sb); in Syscall_Stat()
349 status = Copy_Out(&sb, user_stat, sizeof(struct stat)); in Syscall_Stat()
/lib/libc/
Dsyscall.c89 OSStat(const char *path, struct stat *sb) in OSStat() argument
91 return syscall(SYSCALL_STAT, path, sb); in OSStat()
/include/
Dsyscall.h29 int OSStat(const char *path, struct stat *sb);