[[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:
parent
08775834c4
commit
55aa2e097d
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue