snprintf (blocksize_s, sizeof blocksize_s, "%d", blocksize);
r = command (NULL, &err,
- "/sbin/mke2fs", "-O", "journal_dev", "-b", blocksize_s,
- device, NULL);
+ "/sbin/mke2fs", "-O", "journal_dev", "-b", blocksize_s,
+ device, NULL);
if (r == -1) {
reply_with_error ("mke2journal: %s", err);
free (err);
snprintf (blocksize_s, sizeof blocksize_s, "%d", blocksize);
r = command (NULL, &err,
- "/sbin/mke2fs", "-O", "journal_dev", "-b", blocksize_s,
- "-L", label,
- device, NULL);
+ "/sbin/mke2fs", "-O", "journal_dev", "-b", blocksize_s,
+ "-L", label,
+ device, NULL);
if (r == -1) {
reply_with_error ("mke2journal_L: %s", err);
free (err);
snprintf (blocksize_s, sizeof blocksize_s, "%d", blocksize);
r = command (NULL, &err,
- "/sbin/mke2fs", "-O", "journal_dev", "-b", blocksize_s,
- "-U", uuid,
- device, NULL);
+ "/sbin/mke2fs", "-O", "journal_dev", "-b", blocksize_s,
+ "-U", uuid,
+ device, NULL);
if (r == -1) {
reply_with_error ("mke2journal_U: %s", err);
free (err);
int
do_mke2fs_J (const char *fstype, int blocksize, const char *device,
- const char *journal)
+ const char *journal)
{
char *err;
int r;
snprintf (jdev, len+32, "device=%s", journal);
r = command (NULL, &err,
- "/sbin/mke2fs", "-t", fstype, "-J", jdev, "-b", blocksize_s,
- device, NULL);
+ "/sbin/mke2fs", "-t", fstype, "-J", jdev, "-b", blocksize_s,
+ device, NULL);
if (r == -1) {
reply_with_error ("mke2fs_J: %s", err);
free (err);
int
do_mke2fs_JL (const char *fstype, int blocksize, const char *device,
- const char *label)
+ const char *label)
{
char *err;
int r;
snprintf (jdev, len+32, "device=LABEL=%s", label);
r = command (NULL, &err,
- "/sbin/mke2fs", "-t", fstype, "-J", jdev, "-b", blocksize_s,
- device, NULL);
+ "/sbin/mke2fs", "-t", fstype, "-J", jdev, "-b", blocksize_s,
+ device, NULL);
if (r == -1) {
reply_with_error ("mke2fs_JL: %s", err);
free (err);
int
do_mke2fs_JU (const char *fstype, int blocksize, const char *device,
- const char *uuid)
+ const char *uuid)
{
char *err;
int r;
snprintf (jdev, len+32, "device=UUID=%s", uuid);
r = command (NULL, &err,
- "/sbin/mke2fs", "-t", fstype, "-J", jdev, "-b", blocksize_s,
- device, NULL);
+ "/sbin/mke2fs", "-t", fstype, "-J", jdev, "-b", blocksize_s,
+ device, NULL);
if (r == -1) {
reply_with_error ("mke2fs_JU: %s", err);
free (err);