aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/net/9p/9p.h28
-rw-r--r--include/net/9p/client.h1
2 files changed, 29 insertions, 0 deletions
diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h
index ab12e1c9cc7e..7f64d72f6c61 100644
--- a/include/net/9p/9p.h
+++ b/include/net/9p/9p.h
@@ -135,6 +135,8 @@ enum p9_msg_t {
135 P9_RRENAME, 135 P9_RRENAME,
136 P9_TGETATTR = 24, 136 P9_TGETATTR = 24,
137 P9_RGETATTR, 137 P9_RGETATTR,
138 P9_TSETATTR = 26,
139 P9_RSETATTR,
138 P9_TREADDIR = 40, 140 P9_TREADDIR = 40,
139 P9_RREADDIR, 141 P9_RREADDIR,
140 P9_TVERSION = 100, 142 P9_TVERSION = 100,
@@ -406,6 +408,32 @@ struct p9_stat_dotl {
406#define P9_STATS_BASIC 0x000007ffULL /* Mask for fields up to BLOCKS */ 408#define P9_STATS_BASIC 0x000007ffULL /* Mask for fields up to BLOCKS */
407#define P9_STATS_ALL 0x00003fffULL /* Mask for All fields above */ 409#define P9_STATS_ALL 0x00003fffULL /* Mask for All fields above */
408 410
411/**
412 * struct p9_iattr_dotl - P9 inode attribute for setattr
413 * @valid: bitfield specifying which fields are valid
414 * same as in struct iattr
415 * @mode: File permission bits
416 * @uid: user id of owner
417 * @gid: group id
418 * @size: File size
419 * @atime_sec: Last access time, seconds
420 * @atime_nsec: Last access time, nanoseconds
421 * @mtime_sec: Last modification time, seconds
422 * @mtime_nsec: Last modification time, nanoseconds
423 */
424
425struct p9_iattr_dotl {
426 u32 valid;
427 u32 mode;
428 u32 uid;
429 u32 gid;
430 u64 size;
431 u64 atime_sec;
432 u64 atime_nsec;
433 u64 mtime_sec;
434 u64 mtime_nsec;
435};
436
409/* Structures for Protocol Operations */ 437/* Structures for Protocol Operations */
410struct p9_tstatfs { 438struct p9_tstatfs {
411 u32 fid; 439 u32 fid;
diff --git a/include/net/9p/client.h b/include/net/9p/client.h
index 6462eec435bc..afdc385152f6 100644
--- a/include/net/9p/client.h
+++ b/include/net/9p/client.h
@@ -237,6 +237,7 @@ int p9dirent_read(char *buf, int len, struct p9_dirent *dirent,
237 int proto_version); 237 int proto_version);
238struct p9_wstat *p9_client_stat(struct p9_fid *fid); 238struct p9_wstat *p9_client_stat(struct p9_fid *fid);
239int p9_client_wstat(struct p9_fid *fid, struct p9_wstat *wst); 239int p9_client_wstat(struct p9_fid *fid, struct p9_wstat *wst);
240int p9_client_setattr(struct p9_fid *fid, struct p9_iattr_dotl *attr);
240 241
241struct p9_stat_dotl *p9_client_getattr_dotl(struct p9_fid *fid, 242struct p9_stat_dotl *p9_client_getattr_dotl(struct p9_fid *fid,
242 u64 request_mask); 243 u64 request_mask);