Bug 1472 - libbe: creating a new BE from a mounted BE gets the mountpoints for subordinate datasets wrong
: libbe: creating a new BE from a mounted BE gets the mountpoints for subordina...
Status: RESOLVED FIXINBUILD
Product: installer
library
: unspecified
: Other Solaris
: P3 minor (vote)
: in-preview
Assigned To: Ethan Quach
:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-04-23 14:13 UTC by Ethan Quach
Modified: 2008-11-24 13:00 UTC (History)
1 user (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Ethan Quach 2008-04-23 14:13:44 UTC
If a mounted BE is the source for creating a new BE, the mountpoints
for the subordinate datasets in the new BE end up getting set incorrectly
if they are locally set (i.e. not inherited).

equach@opensolaris:/# 
equach@opensolaris:/# zfs list -r rpool/ROOT/be1
NAME                 USED  AVAIL  REFER  MOUNTPOINT
rpool/ROOT/be1       970K  31.0G  2.23G  legacy
rpool/ROOT/be1/opt      0  31.0G  3.60M  /opt
equach@opensolaris:/# 
equach@opensolaris:/# beadm mount be1 /mnt
equach@opensolaris:/# 
equach@opensolaris:/# zfs list -r rpool/ROOT/be1
NAME                 USED  AVAIL  REFER  MOUNTPOINT
rpool/ROOT/be1       970K  31.0G  2.23G  /mnt
rpool/ROOT/be1/opt      0  31.0G  3.60M  /mnt/opt
equach@opensolaris:/#
equach@opensolaris:/#
equach@opensolaris:/# beadm create -e be1 be2
equach@opensolaris:/# 
equach@opensolaris:/# zfs list -r rpool/ROOT/be2
NAME                 USED  AVAIL  REFER  MOUNTPOINT
rpool/ROOT/be2      73.5K  31.0G  2.23G  legacy
rpool/ROOT/be2/opt      0  31.0G  3.60M  /mnt/opt
equach@opensolaris:/# 


The mountpoint for rpool/ROOT/be2/opt should be /opt
Comment 1 Ethan Quach 2008-04-23 14:16:17 UTC
During creation of the BE, libbe needs to detect if the source BE
is currently mounted.  If so, it needs remove the BE altroot from
the mountpoint of the cloned datasets for datasets that have locally
set mountpoints.
Comment 2 Ethan Quach 2008-04-30 12:09:06 UTC
Fixed in changeset f129fc0b1891