By default the file system structure was set up as is set up so that /usr and /var are not inside a boot environment dataset and have canmount set to off.
I can see that this is set up so that data falls through into the root dataset and is not saved inside /usr and /var. What doesn't make sense to me is why are /usr and /var in that case not just mounted in the default boot environment?
Like this:
It would seem to me that that would result in the same conclusion of whatever being put in user and var ending up in the default boot environment. Is it just not necessary to add the additional data sets?
Code:
$ zfs list -H -o name,mountpoint,canmount
NAME MOUNTPOINT CANMOUNT
s${ZROOT}/ROOT none on
${ZROOT}/ROOT/default / noauto
${ZROOT}/tmp /tmp on
${ZROOT}/usr /usr off
${ZROOT}/usr/home /usr/home on
${ZROOT}/usr/ports /usr/ports on
${ZROOT}/usr/src /usr/src on
${ZROOT}/var /var off
${ZROOT}/var/audit /var/audit on
${ZROOT}/var/crash /var/crash on
${ZROOT}/var/log /var/log on
${ZROOT}/var/mail /var/mail on
${ZROOT}/var/tmp /var/tmp on
I can see that this is set up so that data falls through into the root dataset and is not saved inside /usr and /var. What doesn't make sense to me is why are /usr and /var in that case not just mounted in the default boot environment?
Like this:
Code:
NAME MOUNTPOINT CANMOUNT
${ZROOT}/ROOT none on
${ZROOT}/ROOT/default / noauto
${ZROOT}/ROOT/default/usr /usr on
${ZROOT}/ROOT/default/var /var on
${ZROOT}/tmp /tmp on
${ZROOT}/usr none off
${ZROOT}/usr/home /usr/home on
${ZROOT}/usr/ports /usr/ports on
${ZROOT}/usr/src /usr/src on
${ZROOT}/var none off
${ZROOT}/var/audit /var/audit on
${ZROOT}/var/crash /var/crash on
${ZROOT}/var/log /var/log on
${ZROOT}/mail /var/mail on
${ZROOT}/tmp /var/tmp on
It would seem to me that that would result in the same conclusion of whatever being put in user and var ending up in the default boot environment. Is it just not necessary to add the additional data sets?