summaryrefslogtreecommitdiffstats
path: root/sbin/newfs_msdos
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-10-04 00:29:26 +0000
committerpeter <peter@FreeBSD.org>2002-10-04 00:29:26 +0000
commite3b4d3d5623f988398b5d1e060195b1b07ff3088 (patch)
tree39a38f42db982aa95f857dc15fdcd303d1203e3d /sbin/newfs_msdos
parentbdd73e1df93ecb5a9ecb097aad1bad71f4fcfec1 (diff)
downloadFreeBSD-src-e3b4d3d5623f988398b5d1e060195b1b07ff3088.zip
FreeBSD-src-e3b4d3d5623f988398b5d1e060195b1b07ff3088.tar.gz
EFI GPT partitions use 'p' as a slice seperator. eg: da0p1 or da0p217.
(There is a theoretical limit of 16384 partitions)
Diffstat (limited to 'sbin/newfs_msdos')
-rw-r--r--sbin/newfs_msdos/newfs_msdos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c
index d0085f7..754c8f5 100644
--- a/sbin/newfs_msdos/newfs_msdos.c
+++ b/sbin/newfs_msdos/newfs_msdos.c
@@ -725,7 +725,7 @@ getdiskinfo(int fd, const char *fname, const char *dtype, int oflag,
else
while (isdigit(*++s2));
s1 = s2;
- if (s2 && *s2 == 's') {
+ if (s2 && (*s2 == 's' || *s2 == 'p')) {
slice = strtol(s2 + 1, &s, 10);
if (slice < 1 || slice > MAX_SLICES - BASE_SLICE)
s2 = NULL;
OpenPOWER on IntegriCloud