diff options
| author | Karel Zak <kzak@redhat.com> | 2015-04-23 12:32:36 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2015-04-23 12:32:36 +0200 |
| commit | 9d9a1b876094fe38c5539f19a57323437b8b8a0d (patch) | |
| tree | 25b1eb272ac066a9c283ec6fbd4f1b523c9774de /disk-utils/sfdisk.c | |
| parent | fb966a7e1f656e9e5cefe131f37b57eaf63fdb05 (diff) | |
| download | util-linux-9d9a1b876094fe38c5539f19a57323437b8b8a0d.tar.gz | |
libfdisk: (gpt) add extra check for First/Last LBA
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/sfdisk.c')
| -rw-r--r-- | disk-utils/sfdisk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index 67fa1d18f3..9daf98cc39 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -1216,7 +1216,8 @@ static int command_fdisk(struct sfdisk *sf, int argc, char **argv) if (!sf->quiet) fputs(_("Checking that no-one is using this disk right now ..."), stdout); if (is_device_used(sf)) { - fputs(_(" FAILED\n\n"), stdout); + if (!sf->quiet) + fputs(_(" FAILED\n\n"), stdout); fdisk_warnx(sf->cxt, _( "This disk is currently in use - repartitioning is probably a bad idea.\n" @@ -1225,7 +1226,7 @@ static int command_fdisk(struct sfdisk *sf, int argc, char **argv) if (!sf->force) errx(EXIT_FAILURE, _("Use the --force flag to overrule all checks.")); - } else + } else if (!sf->quiet) fputs(_(" OK\n\n"), stdout); } |
