From: Phillip Susi <psusi@cfl.rr.com>
To: util-linux@vger.kernel.org
Subject: [PATCH 4/4] partx: don't treat empty partition table as error
Date: Mon, 5 Dec 2011 15:02:52 -0500 [thread overview]
Message-ID: <1323115372-3983-4-git-send-email-psusi@cfl.rr.com> (raw)
If a partition table was detected, but it had no partitions
in it, a poorly worded error message was printed and further
action halted. For partx -a, this gave an unnecessary error
and for partx -u, prevented update from removing all partitions.
Signed-off-by: Phillip Susi <psusi@cfl.rr.com>
---
partx/partx.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/partx/partx.c b/partx/partx.c
index 50b0c20..f4f2db1 100644
--- a/partx/partx.c
+++ b/partx/partx.c
@@ -696,12 +696,6 @@ static blkid_partlist get_partlist(blkid_probe pr,
printf(_("%s: partition table type '%s' detected\n"),
device, blkid_parttable_get_type(tab));
- if (!blkid_partlist_numof_partitions(ls)) {
- warnx(_("%s: %s partition table does not contains "
- "usable partitions"), device,
- blkid_parttable_get_type(tab));
- return NULL;
- }
return ls;
}
--
1.7.5.4
next reply other threads:[~2011-12-05 20:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-05 20:02 Phillip Susi [this message]
2011-12-08 13:29 ` [PATCH 4/4] partx: don't treat empty partition table as error Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1323115372-3983-4-git-send-email-psusi@cfl.rr.com \
--to=psusi@cfl.rr.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).