ObjectiveFS Linux File Attributes Support

ObjectiveFS supports file attributes for Linux in version 6.5 and newer. For the corresponding flags support on macOS, see this doc.

Linux File Attributes

ObjectiveFS supports the immutable, append-only and nodump file attributes on Linux.

Usage

To use ObjectiveFS with file attributes, just mount your filesystem as usual on your linux server and run the corresponding chattr and lsattr commands.

Examples

Use chattr to change a file’s attributes and lsattr to list a file’s attributes.

  1. Add append-only to file /ofs/logfile

    # chattr +a /ofs/logfile

  2. List the attributes of file /ofs/logfile

    # lsattr /ofs/logfile
    -----a------------ /ofs/logfile

  3. Remove append-only from file /ofs/logfile

    # chattr -a /ofs/logfile

  4. Add nodump to file /ofs/tmpfile

    # chattr +d /ofs/tmpfile

  5. Add immutable to file /ofs/mykey

    # chattr +i /ofs/mykey


by ObjectiveFS staff, November 26, 2019
ObjectiveFS is a shared file system for Linux and OS X that automatically scales and gives you scalable cloud storage. If you have questions or article idea suggestions, please email us at support@objectivefs.com