/xen/tools/libfsimage/common/ |
A D | fsimage_grub.c | 53 fsi_file_t *ffi; in fsig_file_alloc() local 67 return (ffi); in fsig_file_alloc() 227 fsi_file_t *ffi; in fsig_mount() local 242 fsip_file_free(ffi); in fsig_mount() 250 fsip_file_free(ffi); in fsig_mount() 267 fsi_file_t *ffi = NULL; in fsig_open() local 273 fsip_file_free(ffi); in fsig_open() 274 ffi = NULL; in fsig_open() 280 return (ffi); in fsig_open() 316 free(ffi->ff_data); in fsig_close() [all …]
|
A D | fsimage.c | 84 fsi_file_t *ffi; in fsi_file_exists() local 89 fsi_close_file(ffi); in fsi_file_exists() 96 fsi_file_t *ffi; in fsi_open_file() local 100 ffi = ops->fpo_open(fsi, path); in fsi_open_file() 103 return (ffi); in fsi_open_file() 106 int fsi_close_file(fsi_file_t *ffi) in fsi_close_file() argument 112 ops = ffi->ff_fsi->f_plugin->fp_ops; in fsi_close_file() 113 err = ops->fpo_close(ffi); in fsi_close_file() 125 ops = ffi->ff_fsi->f_plugin->fp_ops; in fsi_read_file() 126 ret = ops->fpo_read(ffi, buf, nbytes); in fsi_read_file() [all …]
|
A D | fsimage_plugin.c | 47 if (ffi == NULL) in fsip_file_alloc() 50 bzero(ffi, sizeof (fsi_file_t)); in fsip_file_alloc() 52 ffi->ff_fsi = fsi; in fsip_file_alloc() 53 ffi->ff_data = data; in fsip_file_alloc() 54 return (ffi); in fsip_file_alloc() 58 fsip_file_free(fsi_file_t *ffi) in fsip_file_free() argument 60 free(ffi); in fsip_file_free() 64 fsip_fs(fsi_file_t *ffi) in fsip_fs() argument 66 return (ffi->ff_fsi); in fsip_fs() 82 fsip_file_data(fsi_file_t *ffi) in fsip_file_data() argument [all …]
|
A D | xenfsimage_grub.h | 51 #define FSYS_BUF (fsig_file_buf(ffi)) 52 #define filepos (*fsig_filepos(ffi)) 53 #define filemax (*fsig_filemax(ffi)) 56 #define errnum (*fsig_errnum(ffi))
|
/xen/tools/libfsimage/ufs/ |
A D | fsys_ufs.c | 38 #define indirblk0 (*fsig_int1(ffi)) 39 #define indirblk1 (*fsig_int2(ffi)) 65 ufs_dir(fsi_file_t *ffi, char *dirname) in ufs_dir() argument 77 if (!openi(ffi, inode)) in ufs_dir() 87 inode = dlook(ffi, inode, fname); in ufs_dir() 94 if (! openi(ffi, inode)) in ufs_dir() 105 ufs_read(fsi_file_t *ffi, char *buf, int len) in ufs_read() argument 118 if ((dblk = sbmap(ffi, lblk)) <= 0) { in ufs_read() 150 openi(fsi_file_t *ffi, grub_ino_t inode) in openi() argument 168 sbmap(fsi_file_t *ffi, grub_daddr32_t bn) in sbmap() argument [all …]
|
/xen/tools/libfsimage/xfs/ |
A D | fsys_xfs.c | 222 init_extents (fsi_file_t *ffi) in init_extents() argument 236 devread (ffi, xfs.daddr, 0, in init_extents() 251 next_extent (fsi_file_t *ffi) in next_extent() argument 289 xfs_dabread (fsi_file_t *ffi) in xfs_dabread() argument 294 init_extents (ffi); in xfs_dabread() 344 xfs_dabread (ffi); in next_dentry() 359 *ino = sf_parent_ino (ffi); in next_dentry() 384 xfs_read (ffi, dirbuf, 4); in next_dentry() 434 xfs_dabread (ffi); in first_dentry() 502 init_extents (ffi); in xfs_read() [all …]
|
/xen/tools/libfsimage/zfs/ |
A D | fsi_zfs.c | 76 fsi_zfs_mount(fsi_file_t *ffi, const char *options) in fsi_zfs_mount() argument 78 zfs_ffi = ffi; in fsi_zfs_mount() 92 fsi_zfs_open(fsi_file_t *ffi, char *filename) in fsi_zfs_open() argument 99 zfs_ffi = ffi; in fsi_zfs_open() 100 fmax = fsig_filemax(ffi); in fsi_zfs_open() 101 fpos = fsig_filepos(ffi); in fsi_zfs_open() 119 fsi_bootstring = fsi_bootstring_alloc(ffi->ff_fsi, in fsi_zfs_open() 128 fsi_zfs_read(fsi_file_t *ffi, char *buf, int len) in fsi_zfs_read() argument 133 zfs_ffi = ffi; in fsi_zfs_read() 134 fpos = fsig_filepos(ffi); in fsi_zfs_read()
|
/xen/tools/libfsimage/ext2fs/ |
A D | fsys_ext2fs.c | 21 #define mapblock1 (*fsig_int1(ffi)) 22 #define mapblock2 (*fsig_int2(ffi)) 440 && !ext2_rdfsb (ffi, bnum, DATABLOCK2)) in ext2fs_block_map() 459 if (!ext2_rdfsb (ffi, ((__u32 *) DATABLOCK1) in ext2fs_block_map() 505 ext2fs_read (fsi_file_t *ffi, char *buf, int len) in ext2fs_read() argument 597 int ext2_is_fast_symlink (fsi_file_t *ffi) in ext2_is_fast_symlink() argument 612 ext2fs_dir (fsi_file_t *ffi, char *dirname) in ext2fs_dir() argument 663 if (!ext2_rdfsb (ffi, in ext2fs_dir() 748 if (! ext2_is_fast_symlink (ffi)) in ext2fs_dir() 751 len = ext2fs_read (ffi, linkbuf, filemax); in ext2fs_dir() [all …]
|
/xen/tools/libfsimage/reiserfs/ |
A D | fsys_reiserfs.c | 428 if (! journal_read (ffi, commit_block, in block_read() 462 journal_init (fsi_file_t *ffi) in journal_init() argument 628 journal_init (ffi); in reiserfs_mount() 717 next_key (fsi_file_t *ffi) in next_key() argument 875 reiserfs_read (fsi_file_t *ffi, char *buf, int len) in reiserfs_read() argument 968 next_key (ffi); in reiserfs_read() 983 reiserfs_dir (fsi_file_t *ffi, char *dirname) in reiserfs_dir() argument 1005 if (! search_stat (ffi, dir_id, objectid)) in reiserfs_dir() 1047 if (! next_key (ffi) in reiserfs_dir() 1100 return next_key (ffi); in reiserfs_dir() [all …]
|
/xen/tools/libfsimage/iso9660/ |
A D | fsys_iso9660.c | 62 iso9660_devread (fsi_file_t *ffi, int sector, int byte_offset, int byte_len, char *buf) in iso9660_devread() argument 100 return devread(ffi, sector, byte_offset, byte_len, buf); in iso9660_devread() 104 iso9660_mount (fsi_file_t *ffi, const char *options) in iso9660_mount() argument 125 if (!iso9660_devread(ffi, sector, 0, sizeof(*PRIMDESC), (char *)PRIMDESC)) in iso9660_mount() 144 iso9660_dir (fsi_file_t *ffi, char *dirname) in iso9660_dir() argument 175 if (!iso9660_devread(ffi, extent, 0, ISO_SECTOR_SIZE, (char *)DIRREC)) in iso9660_dir() 344 if (!iso9660_devread(ffi, ce_ptr->u.ce.extent.l, 0, ISO_SECTOR_SIZE, (char *)RRCONT_BUF)) in iso9660_dir() 416 iso9660_read (fsi_file_t *ffi, char *buf, int len) in iso9660_read() argument 434 if (!iso9660_devread(ffi, INODE->file_start + sector, blkoffset, size, buf)) in iso9660_read()
|
/xen/tools/libfsimage/fat/ |
A D | fsys_fat.c | 57 fat_mount (fsi_file_t *ffi, const char *options) in fat_mount() argument 63 if (! devread (ffi, 0, 0, sizeof (bpb), (char *) &bpb)) in fat_mount() 150 if (!devread(ffi, FAT_SUPER->fat_offset, 0, in fat_mount() 182 fat_read (fsi_file_t *ffi, char *buf, int len) in fat_read() argument 195 if (!devread(ffi, FAT_SUPER->root_offset, filepos, size, buf)) in fat_read() 227 if (!devread (ffi, sector, 0, FAT_CACHE_SIZE, (char*) FAT_BUF)) in fat_read() 261 devread(ffi, sector, offset, size, buf); in fat_read() 276 fat_dir (fsi_file_t *ffi, char *dirname) in fat_dir() argument 338 if (fat_read (ffi, dir_buf, FAT_DIRENTRY_LENGTH) != FAT_DIRENTRY_LENGTH in fat_dir()
|