Lines Matching defs:fs
24 ext2_filsys fs;
29 retval = ext2fs_get_mem(sizeof(struct struct_ext2_filsys), &fs);
33 *fs = *src;
34 fs->device_name = 0;
35 fs->super = 0;
36 fs->orig_super = 0;
37 fs->group_desc = 0;
38 fs->inode_map = 0;
39 fs->block_map = 0;
40 fs->badblocks = 0;
41 fs->dblist = 0;
43 io_channel_bumpcount(fs->io);
44 if (fs->icache)
45 fs->icache->refcount++;
47 retval = ext2fs_get_mem(strlen(src->device_name)+1, &fs->device_name);
50 strcpy(fs->device_name, src->device_name);
52 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &fs->super);
55 memcpy(fs->super, src->super, SUPERBLOCK_SIZE);
57 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &fs->orig_super);
60 memcpy(fs->orig_super, src->orig_super, SUPERBLOCK_SIZE);
62 retval = ext2fs_get_array(fs->desc_blocks, fs->blocksize,
63 &fs->group_desc);
66 memcpy(fs->group_desc, src->group_desc,
67 (size_t) fs->desc_blocks * fs->blocksize);
70 retval = ext2fs_copy_bitmap(src->inode_map, &fs->inode_map);
75 retval = ext2fs_copy_bitmap(src->block_map, &fs->block_map);
80 retval = ext2fs_badblocks_copy(src->badblocks, &fs->badblocks);
85 retval = ext2fs_copy_dblist(src->dblist, &fs->dblist);
89 *dest = fs;
92 ext2fs_free(fs);