cifs: add function to set file disposition
authorJeff Layton <jlayton@redhat.com>
Tue, 23 Sep 2008 15:48:35 +0000 (11:48 -0400)
committerSteve French <sfrench@us.ibm.com>
Tue, 23 Sep 2008 17:39:28 +0000 (17:39 +0000)
commit6d22f09896c0d62c003ffa25fff25323e3ed608b
treeae324f22f3e2f4a4b5e5b7bf5f4f6d84e4f95ee0
parent7c9c3760b3a5ae87ee4d661703b6d5de3999fe46
cifs: add function to set file disposition

cifs: add function to set file disposition

The proper way to set the delete on close bit on an already existing
file is to use SET_FILE_INFO with an infolevel of
SMB_FILE_DISPOSITION_INFO. Add a function to do that and have the
silly-rename code use it.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/inode.c