Home | History | Annotate | Download | only in genext2fs

Lines Matching defs:filesystem

4 // ext2 filesystem generator for embedded systems
239 // Number of groups in the filesystem
444 udecl32(s_inodes_count) /* Count of inodes in the filesystem */ \
445 udecl32(s_blocks_count) /* Count of blocks in the filesystem */ \
455 udecl32(s_mtime) /* The time that the filesystem was last mounted */ \
456 udecl32(s_wtime) /* The time that the filesystem was last written to */ \
460 udecl16(s_state) /* Flags indicating the current state of the filesystem */ \
462 udecl16(s_minor_rev_level) /* The minor revision level of the filesystem */ \
463 udecl32(s_lastcheck) /* The time that the filesystem was last checked */ \
465 udecl32(s_creator_os) /* Indicator of which OS created the filesystem */ \
466 udecl32(s_rev_level) /* The revision level of the filesystem */ \
576 /* Filesystem structure that support groups */
583 } filesystem;
819 // return a given block from a filesystem
821 get_blk(filesystem *fs, uint32 blk)
826 // return a given inode from a filesystem
828 get_nod(filesystem *fs, uint32 nod)
874 alloc_blk(filesystem *fs, uint32 nod)
897 free_blk(filesystem *fs, uint32 bk)
910 alloc_nod(filesystem *fs)
973 walk_bw(filesystem *fs, uint32 nod, blockwalker *bw, int32 *create, uint32 hole)
1205 extend_blk(filesystem *fs, uint32 nod, block b, int amount)
1248 add2dir(filesystem *fs, uint32 dnod, uint32 nod, const char* name)
1320 find_dir(filesystem *fs, uint32 nod, const char * name)
1340 find_path(filesystem *fs, uint32 nod, const char * name)
1366 chmod_fs(filesystem *fs, uint32 nod, uint16 mode, uint16 uid, uint16 gid)
1377 mknod_fs(filesystem *fs, uint32 parent_nod, const char *name, uint16 mode, uint16 uid, uint16 gid, uint8 major, uint8 minor, uint32 ctime, uint32 mtime)
1413 mkdir_fs(filesystem *fs, uint32 parent_nod, const char *name, uint32 mode,
1421 mklink_fs(filesystem *fs, uint32 parent_nod, const char *name, size_t size, uint8 *b, uid_t uid, gid_t gid, uint32 ctime, uint32 mtime)
1437 mkfile_fs(filesystem *fs, uint32 parent_nod, const char *name, uint32 mode, size_t size, FILE *f, uid_t uid, gid_t gid, uint32 ctime, uint32 mtime)
1487 // add or fixup entries to the filesystem from a text file
1507 add2fs_from_file(filesystem *fs, uint32 this_nod, FILE * fh, uint32 fs_timestamp, struct stats *stats)
1641 "filesystem is not data or android!");
1653 // adds a tree of entries to the filesystem from current dir
1655 add2fs_from_dir(filesystem *fs, const char *path, uint32 this_nod, int squash_uids, int squash_perms, int fixstats, uint32 fs_timestamp, struct stats *stats)
1798 swap_goodblocks(filesystem *fs, inode *nod)
1855 swap_badblocks(filesystem *fs, inode *nod)
1899 // endianness swap of the whole filesystem
1901 swap_goodfs(filesystem *fs)
1930 swap_badfs(filesystem *fs)
1958 // initialize an empty filesystem
1959 static filesystem *
1963 filesystem *fs;
1986 /* nbblocks is the total number of blocks in the filesystem.
2006 if(!(fs = (filesystem*)calloc(nbblocks, BLOCKSIZE)))
2007 error_msg_and_die("not enough memory for filesystem");
2009 // create the superblock for an empty filesystem
2048 /* Mark non-filesystem blocks and inodes as allocated */
2054 //non-filesystem blocks
2064 //non-filesystem inodes
2075 /* We have groups now. Add the root filesystem in group 0 */
2129 // loads a filesystem from disk
2130 static filesystem *
2134 filesystem *fs;
2136 perror_msg_and_die("input filesystem image");
2140 error_msg_and_die("too small filesystem");
2141 if(!(fs = (filesystem*)calloc(fssize, BLOCKSIZE)))
2142 error_msg_and_die("not enough memory for filesystem");
2144 perror_msg_and_die("input filesystem image");
2148 error_msg_and_die("not a suitable ext2 filesystem");
2153 free_fs(filesystem *fs)
2160 flist_blocks(filesystem *fs, uint32 nod, FILE *fh)
2172 list_blocks(filesystem *fs, uint32 nod)
2186 write_blocks(filesystem *fs, uint32 nod, FILE* f)
2205 print_dev(filesystem *fs, uint32 nod)
2215 print_dir(filesystem *fs, uint32 nod)
2240 print_link(filesystem *fs, uint32 nod)
2314 print_inode(filesystem *fs, uint32 nod)
2379 // describes various fields in a filesystem
2381 print_fs(filesystem *fs)
2417 dump_fs(filesystem *fs, FILE * fh, int swapit)
2424 perror_msg_and_die("output filesystem image");
2430 populate_fs(filesystem *fs, char **dopt, int didx, int squash_uids, int squash_perms, int fixstats, uint32 fs_timestamp, struct stats *stats)
2445 error_msg_and_die("path %s not found in filesystem", pdest);
2484 "Create an ext2 filesystem image from directories/files\n\n"
2495 " -f, --faketime Set filesystem timestamps to 0 (for testing).\n"
2537 filesystem *fs;
2708 error_msg_and_die("path %s not found in filesystem", gopt[i]);