Skip to contentSkip to conversation

fdisk: API: add FDISK_ERROR_NOLABEL error string

PATCH In review Davidlohr Bueso 2 participants 2 messages Jul 22, 2012 – Jul 24, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 10/10 fdisk: API: add FDISK_ERROR_NOLABEL error string

From: Davidlohr Bueso <[email protected]>

---
 fdisks/utils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
fdisks/utils.c +2 -0
index 510d641..383c1a4 100644
@@ -426,6 +426,8 @@ const char *fdisk_error_name(enum fdisk_error errcode)
 		return "error: ioctl";
 	case FDISK_ERROR_PROBE:
 		return "error: cannot probe";
+	case FDISK_ERROR_NOLABEL:
+		return "error: cannot recognize device partition table";
 	default:
 		return "error: unknown";
 	}
Signature · 1 line
1.7.4.1
maintainer
#1 lore raw
Quoted 1 line · Davidlohr Bueso

return "error: unknown";

Not applied, see the previous discussion about the 1/10 patch.

karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com