diff options
author | Ken Smith <kensmith@FreeBSD.org> | 2003-11-16 06:45:26 +0000 |
---|---|---|
committer | Ken Smith <kensmith@FreeBSD.org> | 2003-11-16 06:45:26 +0000 |
commit | 12ce12716f22d5ea1a7b2d95cd156c62fe6d79e2 (patch) | |
tree | f63d59cdb3ef8b13ee38f8f452e3f1ce6e7cd499 /sbin/gpt/add.c | |
parent | 3834ba792074639fabd114cfe63f7dbc42b4d943 (diff) | |
download | src-12ce12716f22d5ea1a7b2d95cd156c62fe6d79e2.tar.gz src-12ce12716f22d5ea1a7b2d95cd156c62fe6d79e2.zip |
- Add GPT header/table recovery command
- Minor related cleanup in add command
Approved by: marcel
Notes
Notes:
svn path=/head/; revision=122782
Diffstat (limited to 'sbin/gpt/add.c')
-rw-r--r-- | sbin/gpt/add.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/gpt/add.c b/sbin/gpt/add.c index ee6454d427bb..f0ce9a87a61d 100644 --- a/sbin/gpt/add.c +++ b/sbin/gpt/add.c @@ -65,13 +65,14 @@ add(int fd) gpt = map_find(MAP_TYPE_PRI_GPT_HDR); if (gpt == NULL) { - warnx("%s: error: device does not contain a GPT", device_name); + warnx("%s: error: no primary GPT header; run create or recover", + device_name); return; } tpg = map_find(MAP_TYPE_SEC_GPT_HDR); if (tpg == NULL) { - warnx("%s: error: no secundary table; run recover", + warnx("%s: error: no secondary GPT header; run recover", device_name); return; } |