]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libbe(3): Check that dataset is to be mounted at / for be_exists
authorkevans <kevans@FreeBSD.org>
Tue, 7 Aug 2018 03:07:54 +0000 (03:07 +0000)
committerkevans <kevans@FreeBSD.org>
Tue, 7 Aug 2018 03:07:54 +0000 (03:07 +0000)
commit6f493e311faa1a869f5331bb93c166264cd25b9f
tree96ade271040e8ad7d14b27d1faaba740bdddc6e7
parentc3bcd312735c9018a47e94f045c7a6eeb47ce9e1
libbe(3): Check that dataset is to be mounted at / for be_exists

This makes the be_exists behavior match the comments that assert that we've
already checked that the dataset derived from the BE name is set to mount at
/.

Other changes of note:
- bectl_list sees another change; changing mountpoint based on mount status
  turns out to be a bad idea, so instead make the mounted property of the
  returned nvlist the path that it's mounted at

- Always return the "mountpoint" property in "mountpoint" if it's ste
lib/libbe/be_info.c
sbin/bectl/bectl_list.c