Project

General

Profile

Bug #5669

altroot not set in zpool create when specified with -o

Added by Xin Li over 4 years ago. Updated over 4 years ago.

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

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]

History

#2

Updated by Electric Monk over 4 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>

Also available in: Atom PDF