affs: fix basic permission bits to actually work
authorMax Staudt <max@enpas.org>
Thu, 27 Aug 2020 15:49:00 +0000 (17:49 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 31 Aug 2020 10:20:31 +0000 (12:20 +0200)
commitd3a84a8d0dde4e26bc084b36ffcbdc5932ac85e2
treed084612eb51c7bc3f427fae594f1adc42defb9ca
parentf75aef392f869018f78cfedf3c320a6b3fcfda6b
affs: fix basic permission bits to actually work

The basic permission bits (protection bits in AmigaOS) have been broken
in Linux' AFFS - it would only set bits, but never delete them.
Also, contrary to the documentation, the Archived bit was not handled.

Let's fix this for good, and set the bits such that Linux and classic
AmigaOS can coexist in the most peaceful manner.

Also, update the documentation to represent the current state of things.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Signed-off-by: Max Staudt <max@enpas.org>
Signed-off-by: David Sterba <dsterba@suse.com>
Documentation/filesystems/affs.rst
fs/affs/amigaffs.c
fs/affs/file.c