diff options
Diffstat (limited to 'sys')
-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 |