-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pool prop
partition
to disable auto partition
zfsonlinux always partition disk when it detects the device given is a whole disk. This legacy behavior from Illumos, however, has no apparent benefit on Linux, but has some down sides besides confusion. E.g. autoexpand, switching to dm device requires partprobe. We add a pool property `partition` to be set during pool create. It currently has two values, legacy and raw. When setting it to legacy, it will behave as it did. When setiing it to raw, it will always use the device as is without partitioning even if it's a whole disk. This property applies to all commands that add disks to pool, so zpool add/attach/replace will partition or not partition based on the property on the target pool. A pool without this property will be treated as legacy. Newly created pool will by default have partition=raw. Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
- Loading branch information
Chunwei Chen
committed
Jun 28, 2017
1 parent
2d678f7
commit 646aab0
Showing
6 changed files
with
90 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters