diff options
author | marcel <marcel@FreeBSD.org> | 2008-11-26 05:18:27 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-11-26 05:18:27 +0000 |
commit | 11ca3c2595160eeb7c1b645aba5a5c9446ce1c34 (patch) | |
tree | f39ff1ab1381e65a040693e14ae5e8dc15c02f37 /sys/geom/part | |
parent | e796814dfa051868f9125451695062f4cd0ed2e8 (diff) | |
download | FreeBSD-src-11ca3c2595160eeb7c1b645aba5a5c9446ce1c34.zip FreeBSD-src-11ca3c2595160eeb7c1b645aba5a5c9446ce1c34.tar.gz |
Allow dumpon to a partition of type FS_UNUSED as well.
Diffstat (limited to 'sys/geom/part')
-rw-r--r-- | sys/geom/part/g_part_bsd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/geom/part/g_part_bsd.c b/sys/geom/part/g_part_bsd.c index 11491aa..c92a7ce 100644 --- a/sys/geom/part/g_part_bsd.c +++ b/sys/geom/part/g_part_bsd.c @@ -241,9 +241,10 @@ g_part_bsd_dumpto(struct g_part_table *table, struct g_part_entry *baseentry) { struct g_part_bsd_entry *entry; - /* Allow dumping to a swap partition only. */ + /* Allow dumping to a swap partition or an unused partition. */ entry = (struct g_part_bsd_entry *)baseentry; - return ((entry->part.p_fstype == FS_SWAP) ? 1 : 0); + return ((entry->part.p_fstype == FS_UNUSED || + entry->part.p_fstype == FS_SWAP) ? 1 : 0); } static int |