mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
[[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
@ -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 New Issue
Block a user