From cdaa1ae7d27ba4e6d34c447e42e06fd6681b3415 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Wed, 6 Feb 2008 19:25:06 -0600 Subject: [PATCH] --- yaml --- r: 83719 b: refs/heads/master c: d199d652c513a010145a5a0d4e64c96361b97bee h: refs/heads/master i: 83717: 55ca6b4134e819fc8107313556ac31e4ac5bd8a5 83715: 7f0eaaf253d031dfc172bc73ceb86346400343c2 83711: c95b5eb4dbc2e17e1bc0e5e48148bce1a11b82c5 v: v3 --- [refs] | 2 +- trunk/fs/9p/vfs_inode.c | 5 +++++ trunk/include/net/9p/9p.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f563fec40a00..fb6f4e0653d2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7c7d90f2dda6daec5a6aaf8f97aacc10ee4deb77 +refs/heads/master: d199d652c513a010145a5a0d4e64c96361b97bee diff --git a/trunk/fs/9p/vfs_inode.c b/trunk/fs/9p/vfs_inode.c index 23581bcb599b..5c5137c11484 100644 --- a/trunk/fs/9p/vfs_inode.c +++ b/trunk/fs/9p/vfs_inode.c @@ -77,6 +77,8 @@ static int unixmode2p9mode(struct v9fs_session_info *v9ses, int mode) res |= P9_DMSETUID; if ((mode & S_ISGID) == S_ISGID) res |= P9_DMSETGID; + if ((mode & S_ISVTX) == S_ISVTX) + res |= P9_DMSETVTX; if ((mode & P9_DMLINK)) res |= P9_DMLINK; } @@ -119,6 +121,9 @@ static int p9mode2unixmode(struct v9fs_session_info *v9ses, int mode) if ((mode & P9_DMSETGID) == P9_DMSETGID) res |= S_ISGID; + + if ((mode & P9_DMSETVTX) == P9_DMSETVTX) + res |= S_ISVTX; } return res; diff --git a/trunk/include/net/9p/9p.h b/trunk/include/net/9p/9p.h index 625346c47ee2..585eb4496990 100644 --- a/trunk/include/net/9p/9p.h +++ b/trunk/include/net/9p/9p.h @@ -124,6 +124,7 @@ enum { P9_DMSOCKET = 0x00100000, P9_DMSETUID = 0x00080000, P9_DMSETGID = 0x00040000, + P9_DMSETVTX = 0x00010000, }; /* qid.types */