search for: get_mke2f

Displaying 1 result from an estimated 1 matches for "get_mke2f".

Did you mean: get_mke2fs
2009 Aug 19
1
[PATCH] mke2fs: Use e4fsprogs programs if available.
...s renamed mke2fs, and it can use the + * '-t fstype' option to specify the filesystem type. + * + * So it seems best to run /sbin/mke4fs if it exists, or /sbin/mke2fs + * otherwise. We specify e4fsprogs in the package list to ensure it + * is loaded if it exists. + */ +static const char * +get_mke2fs (void) +{ + static const char *progs[] = { "/sbin/mke4fs", "/sbin/mke2fs", NULL }; + int i; + + for (i = 0; progs[i]; ++i) + if (access (progs[i], F_OK) == 0) + return progs[i]; + + reply_with_error ("mke2fs: no mke2fs binary found in appliance"); + retur...