mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: Remove e2prog hack (only needed for RHEL 5).
Instead this patch will be carried out of tree in the oldlinux branch.
This commit is contained in:
@@ -43,7 +43,6 @@ do_mkfs (const char *fstype, const char *device, int blocksize,
|
||||
char sectorsize_str[32];
|
||||
int r;
|
||||
char *err;
|
||||
char mke2fs[] = "mke2fs";
|
||||
int extfs = 0;
|
||||
|
||||
if (STREQ (fstype, "ext2") || STREQ (fstype, "ext3") ||
|
||||
@@ -54,11 +53,8 @@ do_mkfs (const char *fstype, const char *device, int blocksize,
|
||||
* the mkfs program "eats" some options, in particular the -F
|
||||
* option.
|
||||
*/
|
||||
if (extfs) {
|
||||
if (e2prog (mke2fs) == -1)
|
||||
return -1;
|
||||
ADD_ARG (argv, i, mke2fs);
|
||||
}
|
||||
if (extfs)
|
||||
ADD_ARG (argv, i, "mke2fs");
|
||||
else
|
||||
ADD_ARG (argv, i, "mkfs");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user