]> asedeno.scripts.mit.edu Git - linux.git/commit
staging/lustre: Always return EEXIST on mkdir for existing names
authorOleg Drokin <green@linuxhacker.ru>
Sat, 20 Aug 2016 21:34:25 +0000 (17:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 14:03:38 +0000 (16:03 +0200)
commit3a77df1180acf1cbe2276a0cbe91e5d07fbf3c47
tree6fe98aed23ca479e2b8358e2e19d21f1b302fa2b
parent4cae780e54db3a8d75752bda812547db9f1c1c45
staging/lustre: Always return EEXIST on mkdir for existing names

if the name already exists, but we don't have write permissions
in the parent, force talking to the MDS to determine what
more sensical error code to return.
This also happens to fix matlab and other such programs that
assume that EEXIST is the only valid error code for mkdir of
an existing directory.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/namei.c