`chattr +x`は何に使われますか?

`chattr +x`は何に使われますか?

マンページでは、chattr(1)このプロパティを次xのように説明します。

x      The  'x' attribute can be set on a directory or file.  If the attri‐
       bute is set on an existing directory, it will be  inherited  by  all
       files and subdirectories that are subsequently created in the direc‐
       tory.  If an existing directory has contained some files and  subdi‐
       rectories,  modifying  the attribute on the parent directory doesn't
       change the attributes on these files and subdirectories.

したがって、このプロパティは新しく作成されたファイル/サブディレクトリから継承されますが、マニュアルページでは何の効果も指定しません。このプロパティの用途は何ですか?

ベストアンサー1

Ubuntu Jammyに同梱されているe2fsprogsバージョンには、マニュアルページの一部の情報が欠落しているようです。最新バージョン:

 x      A file with the 'x' requests the use of direct access
        (dax) mode, if the kernel supports DAX.  This can be
        overridden by the 'dax=never' mount option.  For more
        information see the kernel documentation for dax:
        <https://www.kernel.org/doc/html/latest/filesystems/dax.html>.

        If the attribute is set on an existing directory, it will
        be inherited by all files and subdirectories that are
        subsequently created in the directory.  If an existing
        directory has contained some files and subdirectories,
        modifying the attribute on the parent directory doesn't
        change the attributes on these files and subdirectories.

この内容が追加されました。今回提出してください、Ubuntuパッケージ以降のバージョン1.46.6でリリースされました。

おすすめ記事