Commit 87de39e7 authored by Joakim Sindholt's avatar Joakim Sindholt Committed by Eric Van Hensbergen

fs/9p: translate O_TRUNC into OTRUNC

This one hits both 9P2000 and .u as it appears v9fs has never translated
the O_TRUNC flag.
Signed-off-by: default avatarJoakim Sindholt <opensource@zhasha.com>
Signed-off-by: default avatarEric Van Hensbergen <ericvh@kernel.org>
parent cd25e15e
......@@ -178,6 +178,9 @@ int v9fs_uflags2omode(int uflags, int extended)
break;
}
if (uflags & O_TRUNC)
ret |= P9_OTRUNC;
if (extended) {
if (uflags & O_EXCL)
ret |= P9_OEXCL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment