/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/busybox/e2fsprogs/old_e2fsprogs/ext2fs/ |
H A D | dupfs.c | 25 ext2_filsys fs; local 30 retval = ext2fs_get_mem(sizeof(struct struct_ext2_filsys), &fs); 34 *fs = *src; 35 fs->device_name = 0; 36 fs->super = 0; 37 fs->orig_super = 0; 38 fs->group_desc = 0; 39 fs->inode_map = 0; 40 fs->block_map = 0; 41 fs [all...] |
H A D | rw_bitmaps.c | 45 static void ext2fs_swap_bitmap(ext2_filsys fs, char *bitmap, int nbytes) argument 55 errcode_t ext2fs_write_inode_bitmap(ext2_filsys fs) argument 60 char * inode_bitmap = fs->inode_map->bitmap; 64 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); 66 if (!(fs->flags & EXT2_FLAG_RW)) 70 nbytes = (size_t) ((EXT2_INODES_PER_GROUP(fs->super)+7) / 8); 72 retval = ext2fs_get_mem(fs->blocksize, &bitmap_block); 75 memset(bitmap_block, 0xff, fs->blocksize); 76 for (i = 0; i < fs->group_desc_count; i++) { 78 blk = fs 97 ext2fs_write_block_bitmap(ext2_filsys fs) argument 149 read_bitmaps(ext2_filsys fs, int do_inode, int do_block) argument 257 ext2fs_read_inode_bitmap(ext2_filsys fs) argument 262 ext2fs_read_block_bitmap(ext2_filsys fs) argument 267 ext2fs_read_bitmaps(ext2_filsys fs) argument 278 ext2fs_write_bitmaps(ext2_filsys fs) argument [all...] |
H A D | openfs.c | 33 blk_t ext2fs_descriptor_block_loc(ext2_filsys fs, blk_t group_block, dgrp_t i) argument 39 if (!(fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) || 40 (i < fs->super->s_first_meta_bg)) 43 bg = (fs->blocksize / sizeof (struct ext2_group_desc)) * i; 44 if (ext2fs_bg_has_super(fs, bg)) 46 ret_blk = (fs->super->s_first_data_block + has_super + 47 (bg * fs->super->s_blocks_per_group)); 56 if (group_block != fs->super->s_first_data_block && 57 ((ret_blk + fs->super->s_blocks_per_group) < 58 fs 87 ext2_filsys fs; local 303 ext2fs_get_data_io(ext2_filsys fs, io_channel *old_io) argument 313 ext2fs_set_data_io(ext2_filsys fs, io_channel new_io) argument 321 ext2fs_rewrite_to_io(ext2_filsys fs, io_channel new_io) argument [all...] |
H A D | freefs.c | 23 void ext2fs_free(ext2_filsys fs) argument 25 if (!fs || (fs->magic != EXT2_ET_MAGIC_EXT2FS_FILSYS)) 27 if (fs->image_io != fs->io) { 28 if (fs->image_io) 29 io_channel_close(fs->image_io); 31 if (fs->io) { 32 io_channel_close(fs->io); 34 ext2fs_free_mem(&fs [all...] |
H A D | alloc_stats.c | 19 void ext2fs_inode_alloc_stats2(ext2_filsys fs, ext2_ino_t ino, argument 22 int group = ext2fs_group_of_ino(fs, ino); 25 ext2fs_mark_inode_bitmap(fs->inode_map, ino); 27 ext2fs_unmark_inode_bitmap(fs->inode_map, ino); 28 fs->group_desc[group].bg_free_inodes_count -= inuse; 30 fs->group_desc[group].bg_used_dirs_count += inuse; 31 fs->super->s_free_inodes_count -= inuse; 32 ext2fs_mark_super_dirty(fs); 33 ext2fs_mark_ib_dirty(fs); 36 void ext2fs_inode_alloc_stats(ext2_filsys fs, ext2_ino_ argument 41 ext2fs_block_alloc_stats(ext2_filsys fs, blk_t blk, int inuse) argument [all...] |
H A D | closefs.c | 36 int ext2fs_bg_has_super(ext2_filsys fs, int group_block) argument 38 if (!(fs->super->s_feature_ro_compat & 49 int ext2fs_super_and_bgd_loc(ext2_filsys fs, argument 61 group_block = fs->super->s_first_data_block + 62 (group * fs->super->s_blocks_per_group); 64 if (fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) 65 old_desc_blocks = fs->super->s_first_meta_bg; 68 fs->desc_blocks + fs->super->s_reserved_gdt_blocks; 70 if (group == fs 129 write_primary_superblock(ext2_filsys fs, struct ext2_super_block *super) argument 169 ext2fs_update_dynamic_rev(ext2_filsys fs) argument 183 write_backup_super(ext2_filsys fs, dgrp_t group, blk_t group_block, struct ext2_super_block *super_shadow) argument 203 ext2fs_flush(ext2_filsys fs) argument 362 ext2fs_close(ext2_filsys fs) argument [all...] |
H A D | inode.c | 34 ext2_filsys fs; member in struct:ext2_struct_inode_scan 47 errcode_t (*done_group)(ext2_filsys fs, 59 errcode_t ext2fs_flush_icache(ext2_filsys fs) argument 63 if (!fs->icache) 66 for (i=0; i < fs->icache->cache_size; i++) 67 fs->icache->cache[i].ino = 0; 69 fs->icache->buffer_blk = 0; 73 static errcode_t create_icache(ext2_filsys fs) argument 77 if (fs->icache) 79 retval = ext2fs_get_mem(sizeof(struct ext2_inode_cache), &fs 105 ext2fs_open_inode_scan(ext2_filsys fs, int buffer_blocks, ext2_inode_scan *ret_scan) argument 183 ext2fs_set_inode_callback(ext2_inode_scan scan, errcode_t (*done_group)(ext2_filsys fs, dgrp_t group, void * priv_data), void *done_group_data) argument 472 ext2fs_read_inode_full(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode * inode, int bufsize) argument 571 ext2fs_read_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode * inode) argument 578 ext2fs_write_inode_full(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode * inode, int bufsize) argument 687 ext2fs_write_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument 698 ext2fs_write_new_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument 722 ext2fs_get_blocks(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks) argument 745 ext2fs_check_directory(ext2_filsys fs, ext2_ino_t ino) argument [all...] |
H A D | alloc_tables.c | 31 errcode_t ext2fs_allocate_group_table(ext2_filsys fs, dgrp_t group, argument 38 group_blk = fs->super->s_first_data_block + 39 (group * fs->super->s_blocks_per_group); 41 last_blk = group_blk + fs->super->s_blocks_per_group; 42 if (last_blk >= fs->super->s_blocks_count) 43 last_blk = fs->super->s_blocks_count - 1; 46 bmap = fs->block_map; 51 if (fs->stride) { 52 start_blk = group_blk + fs->inode_blocks_per_group; 53 start_blk += ((fs 106 ext2fs_allocate_tables(ext2_filsys fs) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/busybox/e2fsprogs/old_e2fsprogs/ext2fs/ |
H A D | dupfs.c | 25 ext2_filsys fs; local 30 retval = ext2fs_get_mem(sizeof(struct struct_ext2_filsys), &fs); 34 *fs = *src; 35 fs->device_name = 0; 36 fs->super = 0; 37 fs->orig_super = 0; 38 fs->group_desc = 0; 39 fs->inode_map = 0; 40 fs->block_map = 0; 41 fs [all...] |
H A D | rw_bitmaps.c | 45 static void ext2fs_swap_bitmap(ext2_filsys fs, char *bitmap, int nbytes) argument 55 errcode_t ext2fs_write_inode_bitmap(ext2_filsys fs) argument 60 char * inode_bitmap = fs->inode_map->bitmap; 64 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); 66 if (!(fs->flags & EXT2_FLAG_RW)) 70 nbytes = (size_t) ((EXT2_INODES_PER_GROUP(fs->super)+7) / 8); 72 retval = ext2fs_get_mem(fs->blocksize, &bitmap_block); 75 memset(bitmap_block, 0xff, fs->blocksize); 76 for (i = 0; i < fs->group_desc_count; i++) { 78 blk = fs 97 ext2fs_write_block_bitmap(ext2_filsys fs) argument 149 read_bitmaps(ext2_filsys fs, int do_inode, int do_block) argument 257 ext2fs_read_inode_bitmap(ext2_filsys fs) argument 262 ext2fs_read_block_bitmap(ext2_filsys fs) argument 267 ext2fs_read_bitmaps(ext2_filsys fs) argument 278 ext2fs_write_bitmaps(ext2_filsys fs) argument [all...] |
H A D | openfs.c | 33 blk_t ext2fs_descriptor_block_loc(ext2_filsys fs, blk_t group_block, dgrp_t i) argument 39 if (!(fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) || 40 (i < fs->super->s_first_meta_bg)) 43 bg = (fs->blocksize / sizeof (struct ext2_group_desc)) * i; 44 if (ext2fs_bg_has_super(fs, bg)) 46 ret_blk = (fs->super->s_first_data_block + has_super + 47 (bg * fs->super->s_blocks_per_group)); 56 if (group_block != fs->super->s_first_data_block && 57 ((ret_blk + fs->super->s_blocks_per_group) < 58 fs 87 ext2_filsys fs; local 303 ext2fs_get_data_io(ext2_filsys fs, io_channel *old_io) argument 313 ext2fs_set_data_io(ext2_filsys fs, io_channel new_io) argument 321 ext2fs_rewrite_to_io(ext2_filsys fs, io_channel new_io) argument [all...] |
H A D | freefs.c | 23 void ext2fs_free(ext2_filsys fs) argument 25 if (!fs || (fs->magic != EXT2_ET_MAGIC_EXT2FS_FILSYS)) 27 if (fs->image_io != fs->io) { 28 if (fs->image_io) 29 io_channel_close(fs->image_io); 31 if (fs->io) { 32 io_channel_close(fs->io); 34 ext2fs_free_mem(&fs [all...] |
H A D | alloc_stats.c | 19 void ext2fs_inode_alloc_stats2(ext2_filsys fs, ext2_ino_t ino, argument 22 int group = ext2fs_group_of_ino(fs, ino); 25 ext2fs_mark_inode_bitmap(fs->inode_map, ino); 27 ext2fs_unmark_inode_bitmap(fs->inode_map, ino); 28 fs->group_desc[group].bg_free_inodes_count -= inuse; 30 fs->group_desc[group].bg_used_dirs_count += inuse; 31 fs->super->s_free_inodes_count -= inuse; 32 ext2fs_mark_super_dirty(fs); 33 ext2fs_mark_ib_dirty(fs); 36 void ext2fs_inode_alloc_stats(ext2_filsys fs, ext2_ino_ argument 41 ext2fs_block_alloc_stats(ext2_filsys fs, blk_t blk, int inuse) argument [all...] |
H A D | closefs.c | 36 int ext2fs_bg_has_super(ext2_filsys fs, int group_block) argument 38 if (!(fs->super->s_feature_ro_compat & 49 int ext2fs_super_and_bgd_loc(ext2_filsys fs, argument 61 group_block = fs->super->s_first_data_block + 62 (group * fs->super->s_blocks_per_group); 64 if (fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) 65 old_desc_blocks = fs->super->s_first_meta_bg; 68 fs->desc_blocks + fs->super->s_reserved_gdt_blocks; 70 if (group == fs 129 write_primary_superblock(ext2_filsys fs, struct ext2_super_block *super) argument 169 ext2fs_update_dynamic_rev(ext2_filsys fs) argument 183 write_backup_super(ext2_filsys fs, dgrp_t group, blk_t group_block, struct ext2_super_block *super_shadow) argument 203 ext2fs_flush(ext2_filsys fs) argument 362 ext2fs_close(ext2_filsys fs) argument [all...] |
H A D | inode.c | 34 ext2_filsys fs; member in struct:ext2_struct_inode_scan 47 errcode_t (*done_group)(ext2_filsys fs, 59 errcode_t ext2fs_flush_icache(ext2_filsys fs) argument 63 if (!fs->icache) 66 for (i=0; i < fs->icache->cache_size; i++) 67 fs->icache->cache[i].ino = 0; 69 fs->icache->buffer_blk = 0; 73 static errcode_t create_icache(ext2_filsys fs) argument 77 if (fs->icache) 79 retval = ext2fs_get_mem(sizeof(struct ext2_inode_cache), &fs 105 ext2fs_open_inode_scan(ext2_filsys fs, int buffer_blocks, ext2_inode_scan *ret_scan) argument 183 ext2fs_set_inode_callback(ext2_inode_scan scan, errcode_t (*done_group)(ext2_filsys fs, dgrp_t group, void * priv_data), void *done_group_data) argument 472 ext2fs_read_inode_full(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode * inode, int bufsize) argument 571 ext2fs_read_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode * inode) argument 578 ext2fs_write_inode_full(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode * inode, int bufsize) argument 687 ext2fs_write_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument 698 ext2fs_write_new_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument 722 ext2fs_get_blocks(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks) argument 745 ext2fs_check_directory(ext2_filsys fs, ext2_ino_t ino) argument [all...] |
H A D | alloc_tables.c | 31 errcode_t ext2fs_allocate_group_table(ext2_filsys fs, dgrp_t group, argument 38 group_blk = fs->super->s_first_data_block + 39 (group * fs->super->s_blocks_per_group); 41 last_blk = group_blk + fs->super->s_blocks_per_group; 42 if (last_blk >= fs->super->s_blocks_count) 43 last_blk = fs->super->s_blocks_count - 1; 46 bmap = fs->block_map; 51 if (fs->stride) { 52 start_blk = group_blk + fs->inode_blocks_per_group; 53 start_blk += ((fs 106 ext2fs_allocate_tables(ext2_filsys fs) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/busybox/e2fsprogs/old_e2fsprogs/ext2fs/ |
H A D | dupfs.c | 25 ext2_filsys fs; local 30 retval = ext2fs_get_mem(sizeof(struct struct_ext2_filsys), &fs); 34 *fs = *src; 35 fs->device_name = 0; 36 fs->super = 0; 37 fs->orig_super = 0; 38 fs->group_desc = 0; 39 fs->inode_map = 0; 40 fs->block_map = 0; 41 fs [all...] |
H A D | rw_bitmaps.c | 45 static void ext2fs_swap_bitmap(ext2_filsys fs, char *bitmap, int nbytes) argument 55 errcode_t ext2fs_write_inode_bitmap(ext2_filsys fs) argument 60 char * inode_bitmap = fs->inode_map->bitmap; 64 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); 66 if (!(fs->flags & EXT2_FLAG_RW)) 70 nbytes = (size_t) ((EXT2_INODES_PER_GROUP(fs->super)+7) / 8); 72 retval = ext2fs_get_mem(fs->blocksize, &bitmap_block); 75 memset(bitmap_block, 0xff, fs->blocksize); 76 for (i = 0; i < fs->group_desc_count; i++) { 78 blk = fs 97 ext2fs_write_block_bitmap(ext2_filsys fs) argument 149 read_bitmaps(ext2_filsys fs, int do_inode, int do_block) argument 257 ext2fs_read_inode_bitmap(ext2_filsys fs) argument 262 ext2fs_read_block_bitmap(ext2_filsys fs) argument 267 ext2fs_read_bitmaps(ext2_filsys fs) argument 278 ext2fs_write_bitmaps(ext2_filsys fs) argument [all...] |
H A D | openfs.c | 33 blk_t ext2fs_descriptor_block_loc(ext2_filsys fs, blk_t group_block, dgrp_t i) argument 39 if (!(fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) || 40 (i < fs->super->s_first_meta_bg)) 43 bg = (fs->blocksize / sizeof (struct ext2_group_desc)) * i; 44 if (ext2fs_bg_has_super(fs, bg)) 46 ret_blk = (fs->super->s_first_data_block + has_super + 47 (bg * fs->super->s_blocks_per_group)); 56 if (group_block != fs->super->s_first_data_block && 57 ((ret_blk + fs->super->s_blocks_per_group) < 58 fs 87 ext2_filsys fs; local 303 ext2fs_get_data_io(ext2_filsys fs, io_channel *old_io) argument 313 ext2fs_set_data_io(ext2_filsys fs, io_channel new_io) argument 321 ext2fs_rewrite_to_io(ext2_filsys fs, io_channel new_io) argument [all...] |
H A D | freefs.c | 23 void ext2fs_free(ext2_filsys fs) argument 25 if (!fs || (fs->magic != EXT2_ET_MAGIC_EXT2FS_FILSYS)) 27 if (fs->image_io != fs->io) { 28 if (fs->image_io) 29 io_channel_close(fs->image_io); 31 if (fs->io) { 32 io_channel_close(fs->io); 34 ext2fs_free_mem(&fs [all...] |
H A D | alloc_stats.c | 19 void ext2fs_inode_alloc_stats2(ext2_filsys fs, ext2_ino_t ino, argument 22 int group = ext2fs_group_of_ino(fs, ino); 25 ext2fs_mark_inode_bitmap(fs->inode_map, ino); 27 ext2fs_unmark_inode_bitmap(fs->inode_map, ino); 28 fs->group_desc[group].bg_free_inodes_count -= inuse; 30 fs->group_desc[group].bg_used_dirs_count += inuse; 31 fs->super->s_free_inodes_count -= inuse; 32 ext2fs_mark_super_dirty(fs); 33 ext2fs_mark_ib_dirty(fs); 36 void ext2fs_inode_alloc_stats(ext2_filsys fs, ext2_ino_ argument 41 ext2fs_block_alloc_stats(ext2_filsys fs, blk_t blk, int inuse) argument [all...] |
H A D | closefs.c | 36 int ext2fs_bg_has_super(ext2_filsys fs, int group_block) argument 38 if (!(fs->super->s_feature_ro_compat & 49 int ext2fs_super_and_bgd_loc(ext2_filsys fs, argument 61 group_block = fs->super->s_first_data_block + 62 (group * fs->super->s_blocks_per_group); 64 if (fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) 65 old_desc_blocks = fs->super->s_first_meta_bg; 68 fs->desc_blocks + fs->super->s_reserved_gdt_blocks; 70 if (group == fs 129 write_primary_superblock(ext2_filsys fs, struct ext2_super_block *super) argument 169 ext2fs_update_dynamic_rev(ext2_filsys fs) argument 183 write_backup_super(ext2_filsys fs, dgrp_t group, blk_t group_block, struct ext2_super_block *super_shadow) argument 203 ext2fs_flush(ext2_filsys fs) argument 362 ext2fs_close(ext2_filsys fs) argument [all...] |
H A D | inode.c | 34 ext2_filsys fs; member in struct:ext2_struct_inode_scan 47 errcode_t (*done_group)(ext2_filsys fs, 59 errcode_t ext2fs_flush_icache(ext2_filsys fs) argument 63 if (!fs->icache) 66 for (i=0; i < fs->icache->cache_size; i++) 67 fs->icache->cache[i].ino = 0; 69 fs->icache->buffer_blk = 0; 73 static errcode_t create_icache(ext2_filsys fs) argument 77 if (fs->icache) 79 retval = ext2fs_get_mem(sizeof(struct ext2_inode_cache), &fs 105 ext2fs_open_inode_scan(ext2_filsys fs, int buffer_blocks, ext2_inode_scan *ret_scan) argument 183 ext2fs_set_inode_callback(ext2_inode_scan scan, errcode_t (*done_group)(ext2_filsys fs, dgrp_t group, void * priv_data), void *done_group_data) argument 472 ext2fs_read_inode_full(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode * inode, int bufsize) argument 571 ext2fs_read_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode * inode) argument 578 ext2fs_write_inode_full(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode * inode, int bufsize) argument 687 ext2fs_write_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument 698 ext2fs_write_new_inode(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode) argument 722 ext2fs_get_blocks(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks) argument 745 ext2fs_check_directory(ext2_filsys fs, ext2_ino_t ino) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/fs/ |
H A D | fs_struct.c | 3 #include <linux/fs.h> 9 * Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values. 12 void set_fs_root(struct fs_struct *fs, struct path *path) argument 16 spin_lock(&fs->lock); 17 old_root = fs->root; 18 fs->root = *path; 20 spin_unlock(&fs->lock); 26 * Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values. 29 void set_fs_pwd(struct fs_struct *fs, struct path *path) argument 33 spin_lock(&fs 46 struct fs_struct *fs; local 76 free_fs_struct(struct fs_struct *fs) argument 85 struct fs_struct *fs = tsk->fs; local 102 struct fs_struct *fs = kmem_cache_alloc(fs_cachep, GFP_KERNEL); local 116 struct fs_struct *fs = current->fs; local 152 struct fs_struct *fs = current->fs; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/fs/ |
H A D | fs_struct.c | 3 #include <linux/fs.h> 9 * Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values. 12 void set_fs_root(struct fs_struct *fs, struct path *path) argument 16 spin_lock(&fs->lock); 17 old_root = fs->root; 18 fs->root = *path; 20 spin_unlock(&fs->lock); 26 * Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values. 29 void set_fs_pwd(struct fs_struct *fs, struct path *path) argument 33 spin_lock(&fs 46 struct fs_struct *fs; local 76 free_fs_struct(struct fs_struct *fs) argument 85 struct fs_struct *fs = tsk->fs; local 102 struct fs_struct *fs = kmem_cache_alloc(fs_cachep, GFP_KERNEL); local 116 struct fs_struct *fs = current->fs; local 152 struct fs_struct *fs = current->fs; local [all...] |