diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2012-02-17 08:13:30 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-02-26 23:59:43 -0500 |
commit | 6de2ce423157d06f73d570ef7044f08c2f8697da (patch) | |
tree | 02fac16a0307d7323dc676ee034dbc555bf6d383 /fs/binfmt_script.c | |
parent | 203738e548cefc3fc3c2f73a9063176c9f3583d5 (diff) |
CIFS: Fix mkdir/rmdir bug for the non-POSIX case
Currently we do inc/drop_nlink for a parent directory for every
mkdir/rmdir calls. That's wrong when Unix extensions are disabled
because in this case a server doesn't follow the same semantic and
returns the old value on the next QueryInfo request. As the result,
we update our value with the server one and then decrement it on
every rmdir call - go to negative nlink values.
Fix this by removing inc/drop_nlink for the parent directory from
mkdir/rmdir, setting it for a revalidation and ignoring NumberOfLinks
for directories when Unix extensions are disabled.
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Reviewed-by: Jeff Layton <jlayton@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/binfmt_script.c')
0 files changed, 0 insertions, 0 deletions