]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix creation calls in the dynamic root to fail with EOPNOTSUPP
authorDavid Howells <dhowells@redhat.com>
Wed, 11 Dec 2019 08:56:04 +0000 (08:56 +0000)
committerDavid Howells <dhowells@redhat.com>
Wed, 11 Dec 2019 17:47:51 +0000 (17:47 +0000)
commite4f180b72e5ab9684df2383e527bf67cf8c51d04
treee1729fcc98277bf76544ae497a05710523ee29f2
parent94938bdcf7ccbb3679c0edeb027f894239bd1221
afs: Fix creation calls in the dynamic root to fail with EOPNOTSUPP

Fix the lookup method on the dynamic root directory such that creation
calls, such as mkdir, open(O_CREAT), symlink, etc. fail with EOPNOTSUPP
rather than failing with some odd error (such as EEXIST).

lookup() itself tries to create automount directories when it is invoked.
These are cached locally in RAM and not committed to storage.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Marc Dionne <marc.dionne@auristor.com>
Tested-by: Jonathan Billings <jsbillings@jsbillings.org>
fs/afs/dynroot.c