HomeFreeBSD

Fix file attributes

Description

Fix file attributes

This branch contains the following fixes/improvements.

  • Fix setting i_flags
  • Fix wrong operator in xvattr.h
  • Fix fchange macro in zpl_ioctl_setflags()
  • Added configure check to use inode_set_flags()
  • Added a test case for chattr for better test coverage

Reviewed-by: Tim Chase <tim@chase2k.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes #5486
Closes #5470
Closes #5469

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Dec 19 2016, 9:01 PM
GitHub <noreply@github.com>Committed on Dec 19 2016, 9:01 PM
Parents
rGb4d8e2be0368: Add test for chattr
rG58bf046ab304: Fix coverity defects: CID 155008
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGa3823f428deb: Fix file attributes (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Dec 19 2016, 9:01 PM