search for: ifmt

Displaying 2 results from an estimated 2 matches for "ifmt".

Did you mean: fmt
2014 Jan 27
0
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
...t (EXIT_FAILURE); + } + dup2 (fd, 1); + if (stderr_to_file) + dup2 (fd, 2); + close (fd); + + execvp (argv[0], argv); + perror ("execvp"); + _exit (EXIT_FAILURE); +} + +/* Estimate the size of the input. This returns the estimated size + * (in bytes) of the input. It also sets ifmt to the format of the + * input, either the string "directory" if the input is a directory, + * or the output of the "file" command on the input. + * + * Estimation is a Hard Problem. Some factors which make it hard: + * + * - Superblocks, block free bitmaps, FAT and other fix...
2014 Jan 27
2
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
I thought it would be easy to rewrite virt-make-fs in C. Two days later ... The Perl program uses a lot of external commands, which makes it pretty tedious to implement in C. Rich.