Actions
Bug #5669
closedaltroot not set in zpool create when specified with -o
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2015-02-27
Due date:
% Done:
100%
Estimated time:
0.00 h
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
Description
Currently, 'altroot' is only set when zpool create sees '-R'. It should be also set if -o altroot= is used.
Without this change, e.g zpool create -o altroot=/install_target usr would fail if /usr is not empty.
The patch is a very simple two liner.
Test case:
zpool create -o altroot=/somedir [an existing non-empty directory in /] [some device]
Updated by Electric Monk almost 7 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100
git commit c423721f9bcd45c2409ef7b73fc103ac2889f9e9
commit c423721f9bcd45c2409ef7b73fc103ac2889f9e9 Author: Xin Li <delphij@freebsd.org> Date: 2015-05-27T14:10:16.000Z 5669 altroot not set in zpool create when specified with -o Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: George Wilson <george@delphix.com> Approved by: Dan McDonald <danmcd@omniti.com>
Actions