dect
/
linux-2.6
Archived
13
0
Fork 0

[[CIFS] Pass truncate open flag through on file open in case setattr fails

on set size to zero.

Signed-off-by: Sebastian Voitzsch <sebastoam/vpotzscj@web.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
Steve French 2006-05-30 18:09:31 +00:00
parent 08775834c4
commit 55aa2e097d
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ static inline int cifs_get_disposition(unsigned int flags)
return FILE_OVERWRITE_IF;
else if ((flags & O_CREAT) == O_CREAT)
return FILE_OPEN_IF;
else if ((flags & O_TRUNC) == O_TRUNC)
return FILE_OVERWRITE;
else
return FILE_OPEN;
}