Skip to content

Commit

Permalink
libbe(3): mount: the BE dataset is mounted at /
Browse files Browse the repository at this point in the history
Other parts of libbe(3) were fairly strict on the mountpoint property of the
BE dataset, and be_mount was not much better. It was improved in r347027 to
allow mountpoint=none for depth==0, but this bit was still sensitive to
mountpoint != / and mountpoint != none. Given that other parts of libbe(3)
no longer restrict the mountpoint property here, and the rest of the base
system is generally OK and will assume that a BE is mounted at /, let's do
the same.

Reported by:	ler
MFC after:	3 days
  • Loading branch information
kevans91 committed Jun 25, 2019
1 parent bde6cfd commit a9f31a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libbe/be_access.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ be_mount_iter(zfs_handle_t *zfs_hdl, void *data)
NULL, NULL, 0, 1))
return (1);

if (strcmp("none", zfs_mnt) == 0) {
if (strcmp("none", zfs_mnt) == 0 || info->depth == 0) {
/*
* mountpoint=none; we'll mount it at info->mountpoint assuming
* we're at the root. If we're not at the root, we're likely
Expand Down

0 comments on commit a9f31a1

Please sign in to comment.