1

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: Joakim Sindholt <opensource@zhasha.com>
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
This commit is contained in:
Joakim Sindholt 2024-03-18 12:22:33 +01:00 committed by Eric Van Hensbergen
parent cd25e15e57
commit 87de39e705
No known key found for this signature in database
GPG Key ID: 88FFD5FB4A5FFF98

View File

@ -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;