diff options
author | Eric Van Hensbergen <ericvh@gmail.com> | 2008-10-16 09:29:30 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2008-10-17 12:06:57 -0400 |
commit | 02da398b950c5d079c20afaa23f322383e96070a (patch) | |
tree | cbc49a6ef8a175df705e6e66627a800a26995af9 /net/9p/protocol.c | |
parent | 51a87c552dfd428e304c865e24ecbe091556f226 (diff) |
9p: eliminate depricated conv functions
Remove depricated conv functions which have been replaced with new
protocol routines.
This patch also reworks the one instance of the file-system code which
directly calls conversion routines (to accomplish unpacking dirreads).
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p/protocol.c')
-rw-r--r-- | net/9p/protocol.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/9p/protocol.c b/net/9p/protocol.c index 4ebeffd21d3d..92cb60bb191b 100644 --- a/net/9p/protocol.c +++ b/net/9p/protocol.c | |||
@@ -509,6 +509,19 @@ p9pdu_writef(struct p9_fcall *pdu, int optional, const char *fmt, ...) | |||
509 | return ret; | 509 | return ret; |
510 | } | 510 | } |
511 | 511 | ||
512 | int p9stat_read(char *buf, int len, struct p9_wstat *st, int dotu) | ||
513 | { | ||
514 | struct p9_fcall fake_pdu; | ||
515 | |||
516 | fake_pdu.size = len; | ||
517 | fake_pdu.capacity = len; | ||
518 | fake_pdu.sdata = buf; | ||
519 | fake_pdu.offset = 0; | ||
520 | |||
521 | return p9pdu_readf(&fake_pdu, dotu, "S", st); | ||
522 | } | ||
523 | EXPORT_SYMBOL(p9stat_read); | ||
524 | |||
512 | int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type) | 525 | int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type) |
513 | { | 526 | { |
514 | return p9pdu_writef(pdu, 0, "dbw", 0, type, tag); | 527 | return p9pdu_writef(pdu, 0, "dbw", 0, type, tag); |