Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83719
b: refs/heads/master
c: d199d65
h: refs/heads/master
i:
  83717: 55ca6b4
  83715: 7f0eaaf
  83711: c95b5eb
v: v3
  • Loading branch information
Anthony Liguori authored and Eric Van Hensbergen committed Feb 7, 2008
1 parent a307219 commit cdaa1ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c7d90f2dda6daec5a6aaf8f97aacc10ee4deb77
refs/heads/master: d199d652c513a010145a5a0d4e64c96361b97bee
5 changes: 5 additions & 0 deletions trunk/fs/9p/vfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/net/9p/9p.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ enum {
P9_DMSOCKET = 0x00100000,
P9_DMSETUID = 0x00080000,
P9_DMSETGID = 0x00040000,
P9_DMSETVTX = 0x00010000,
};

/* qid.types */
Expand Down

0 comments on commit cdaa1ae

Please sign in to comment.