Home | History | Annotate | Download | only in genext2fs

Lines Matching refs:fh

1507 add2fs_from_file(filesystem *fs, uint32 this_nod, FILE * fh, uint32 fs_timestamp, struct stats *stats)
1517 fstat(fileno(fh), &st);
1520 while(getline(&line, &len, fh) >= 0)
1660 FILE *fh;
1764 fh = xfopen(dent->d_name, "rb");
1765 nod = mkfile_fs(fs, this_nod, name, mode, st.st_size, fh, uid, gid, ctime, mtime);
1766 fclose(fh);
2131 load_fs(FILE * fh, int swapit)
2135 if((fseek(fh, 0, SEEK_END) < 0) || ((ssize_t)(fssize = ftell(fh)) == -1))
2137 rewind(fh);
2143 if(fread(fs, BLOCKSIZE, fssize, fh) != fssize)
2160 flist_blocks(filesystem *fs, uint32 nod, FILE *fh)
2166 fprintf(fh, " %d", bk);
2167 fprintf(fh, "\n");
2417 dump_fs(filesystem *fs, FILE * fh, int swapit)
2423 if(fwrite(fs, BLOCKSIZE, nbblocks, fh) < nbblocks)
2436 FILE *fh;
2451 fh = xfopen(dopt[i], "rb");
2452 add2fs_from_file(fs, nod, fh, fs_timestamp, stats);
2453 fclose(fh);
2653 FILE * fh = xfopen(fsin, "rb");
2654 fs = load_fs(fh, bigendian);
2655 fclose(fh);
2706 FILE *fh;
2712 fh = xfopen(fname, "wb");
2713 fprintf(fh, "%d:", get_nod(fs, nod)->i_size);
2714 flist_blocks(fs, nod, fh);
2715 fclose(fh);
2719 FILE * fh = xfopen(fsout, "wb");
2720 dump_fs(fs, fh, bigendian);
2721 fclose(fh);