]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libbe(3): move altroot augmentation bits around a little bit
authorkevans <kevans@FreeBSD.org>
Wed, 9 Jan 2019 22:31:10 +0000 (22:31 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 9 Jan 2019 22:31:10 +0000 (22:31 +0000)
commit044685cd18cd00ab5a2ce70728a3627b0aea006b
treeba9583e67ac1c35c58ff04e961f181000d2b048e
parent48665600ce79bb91f682cec45159c15db23ea13a
libbe(3): move altroot augmentation bits around a little bit

We could perhaps have a method that does this given a dataset, but it's yet
clear that we'll always want to bypass the altroot when we grab the
mountpoint. For now, we'll refactor things a bit so we grab the altroot
length when libbe is initialized and have a common method that does the
necessary augmentation (replace with / if it's the root, return a pointer to
later in the string if not).

This will be used in some upcoming work to make be_mount work properly for
deep BEs.

MFC after: 1 week
lib/libbe/be.c
lib/libbe/be_access.c
lib/libbe/be_impl.h