Add the UF_NOHISTORY and SF_NOHISTORY chflags flags. The nohistory flag
commit33036abff4dc06ce0ab2e8585f858e395407578c
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 2 Jun 2008 20:13:38 +0000 (2 20:13 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 2 Jun 2008 20:13:38 +0000 (2 20:13 +0000)
treec4342a40fb4bac31280507c508332c89bcbaec52
parent116edfbfba2dbd2164b420096cbf5ce7ba1d8fd5
Add the UF_NOHISTORY and SF_NOHISTORY chflags flags.  The nohistory flag
allows you to mount a HAMMER filesystem normally and still specify that
certain files and directory not retain historical information.

If set on a directory the flag will be inherited by any objects
created within that directory.

Adjust UFS to inherit the NOHISTORY and NODUMP flags from the parent
directory when creating new objects.  NODUMP used to be ufs-specific
and UFS's backup/restore remembered the inheritance.  As a more generic
flag it needs to be inherited within the filesystem.  Note that UFS
has no historical retention capability and ignores the NOHISTORY flag,
but we might use it with the journaling audit trail later.
sys/sys/stat.h
sys/vfs/ufs/ufs_vnops.c