-
Notifications
You must be signed in to change notification settings - Fork 882
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
growpart: Fix behaviour for ZFS datasets (#5169)
on FreeBSD, ZFS datasets aren't exposed directly as disks devices, so stats will fail. Currently, this means that growpart will be skipped for FreeBSD ZFS volumes, even tho we are perfectly capable of resizing ZFS. - Return fs from devent2dev(), which is now inappropriately named - Add get_zfs_size() helper, and extend get_size() to accept an `fs` parameter. - Add _call_resizer() helper, to avoid an indent on `if fs == zfs` - Add a unittest to show the behaviour Sponsored by: The FreeBSD Foundation
- Loading branch information
Showing
2 changed files
with
161 additions
and
66 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