Bug 215881 - zfs get mlslabel had "" value, instead of none
Summary: zfs get mlslabel had "" value, instead of none
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.0-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: Bugmeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-08 20:48 UTC by Artem
Modified: 2025-01-20 05:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem 2017-01-08 20:48:55 UTC
Description:
zfs get mlslabel return "" value, instead of "none" defined in sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h 
at 319 
>> #define	ZFS_MLSLABEL_DEFAULT	"none"

Example (FreeBSD 11):
[root@freebsd /]# zfs get  mlslabel pool1/fs/fs1
NAME          PROPERTY  VALUE     SOURCE
pool1/fs/fs1  mlslabel            -

Example (OmniOS):
[root@unknown ~]# zfs get mlslabel pool1/fs/fs1
NAME          PROPERTY  VALUE     SOURCE
pool1/fs/fs1    mlslabel        none    default

Example (Linux):
[root@localhost /home]# zfs get mlslabel pool1/fs/fs1
NAME          PROPERTY  VALUE     SOURCE
pool1/fs/fs1    mlslabel        none    default

Effect:
it's broke shell scripts which expect some value or "none" in third (VALUE) field.
In others OS (Illumous, Linux, SunOS) it's has default value - "none"
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2025-01-20 05:38:10 UTC
^Triage: I'm sorry that this PR did not get addressed in a timely fashion.

By now, the version that it was created against is long out of support.
As well, many newer versions of ZFS have been imported.

Please re-open if it is still a problem on a supported version.