mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Allow dumpon to a partition of type FS_UNUSED as well.
This commit is contained in:
parent
d5ec7b69ec
commit
95fc269897
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185327
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user