diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-07-07 04:44:03 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2011-07-23 10:32:48 -0400 |
commit | 52c14ab3b51d000ca534e58f7f34e2dd53408b0a (patch) | |
tree | c5ad18c64b956ea1af234e71a176af808b188e40 /include/net | |
parent | 7f781679dd596c8abde8336b4d0d166d6a4aad04 (diff) |
net/9p: Remove structure not used in the code
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/9p/9p.h | 183 |
1 files changed, 5 insertions, 178 deletions
diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h index 1abbfd87a951..160193e6dddd 100644 --- a/include/net/9p/9p.h +++ b/include/net/9p/9p.h | |||
@@ -327,21 +327,6 @@ enum p9_qid_t { | |||
327 | #define P9_READDIRHDRSZ 24 | 327 | #define P9_READDIRHDRSZ 24 |
328 | 328 | ||
329 | /** | 329 | /** |
330 | * struct p9_str - length prefixed string type | ||
331 | * @len: length of the string | ||
332 | * @str: the string | ||
333 | * | ||
334 | * The protocol uses length prefixed strings for all | ||
335 | * string data, so we replicate that for our internal | ||
336 | * string members. | ||
337 | */ | ||
338 | |||
339 | struct p9_str { | ||
340 | u16 len; | ||
341 | char *str; | ||
342 | }; | ||
343 | |||
344 | /** | ||
345 | * struct p9_qid - file system entity information | 330 | * struct p9_qid - file system entity information |
346 | * @type: 8-bit type &p9_qid_t | 331 | * @type: 8-bit type &p9_qid_t |
347 | * @version: 16-bit monotonically incrementing version number | 332 | * @version: 16-bit monotonically incrementing version number |
@@ -377,11 +362,11 @@ struct p9_qid { | |||
377 | * @atime: Last access/read time | 362 | * @atime: Last access/read time |
378 | * @mtime: Last modify/write time | 363 | * @mtime: Last modify/write time |
379 | * @length: file length | 364 | * @length: file length |
380 | * @name: last element of path (aka filename) in type &p9_str | 365 | * @name: last element of path (aka filename) |
381 | * @uid: owner name in type &p9_str | 366 | * @uid: owner name |
382 | * @gid: group owner in type &p9_str | 367 | * @gid: group owner |
383 | * @muid: last modifier in type &p9_str | 368 | * @muid: last modifier |
384 | * @extension: area used to encode extended UNIX support in type &p9_str | 369 | * @extension: area used to encode extended UNIX support |
385 | * @n_uid: numeric user id of owner (part of 9p2000.u extension) | 370 | * @n_uid: numeric user id of owner (part of 9p2000.u extension) |
386 | * @n_gid: numeric group id (part of 9p2000.u extension) | 371 | * @n_gid: numeric group id (part of 9p2000.u extension) |
387 | * @n_muid: numeric user id of laster modifier (part of 9p2000.u extension) | 372 | * @n_muid: numeric user id of laster modifier (part of 9p2000.u extension) |
@@ -518,11 +503,6 @@ struct p9_getlock { | |||
518 | char *client_id; | 503 | char *client_id; |
519 | }; | 504 | }; |
520 | 505 | ||
521 | /* Structures for Protocol Operations */ | ||
522 | struct p9_tstatfs { | ||
523 | u32 fid; | ||
524 | }; | ||
525 | |||
526 | struct p9_rstatfs { | 506 | struct p9_rstatfs { |
527 | u32 type; | 507 | u32 type; |
528 | u32 bsize; | 508 | u32 bsize; |
@@ -535,159 +515,6 @@ struct p9_rstatfs { | |||
535 | u32 namelen; | 515 | u32 namelen; |
536 | }; | 516 | }; |
537 | 517 | ||
538 | struct p9_trename { | ||
539 | u32 fid; | ||
540 | u32 newdirfid; | ||
541 | struct p9_str name; | ||
542 | }; | ||
543 | |||
544 | struct p9_rrename { | ||
545 | }; | ||
546 | |||
547 | struct p9_tversion { | ||
548 | u32 msize; | ||
549 | struct p9_str version; | ||
550 | }; | ||
551 | |||
552 | struct p9_rversion { | ||
553 | u32 msize; | ||
554 | struct p9_str version; | ||
555 | }; | ||
556 | |||
557 | struct p9_tauth { | ||
558 | u32 afid; | ||
559 | struct p9_str uname; | ||
560 | struct p9_str aname; | ||
561 | u32 n_uname; /* 9P2000.u extensions */ | ||
562 | }; | ||
563 | |||
564 | struct p9_rauth { | ||
565 | struct p9_qid qid; | ||
566 | }; | ||
567 | |||
568 | struct p9_rerror { | ||
569 | struct p9_str error; | ||
570 | u32 errno; /* 9p2000.u extension */ | ||
571 | }; | ||
572 | |||
573 | struct p9_tflush { | ||
574 | u16 oldtag; | ||
575 | }; | ||
576 | |||
577 | struct p9_rflush { | ||
578 | }; | ||
579 | |||
580 | struct p9_tattach { | ||
581 | u32 fid; | ||
582 | u32 afid; | ||
583 | struct p9_str uname; | ||
584 | struct p9_str aname; | ||
585 | u32 n_uname; /* 9P2000.u extensions */ | ||
586 | }; | ||
587 | |||
588 | struct p9_rattach { | ||
589 | struct p9_qid qid; | ||
590 | }; | ||
591 | |||
592 | struct p9_twalk { | ||
593 | u32 fid; | ||
594 | u32 newfid; | ||
595 | u16 nwname; | ||
596 | struct p9_str wnames[16]; | ||
597 | }; | ||
598 | |||
599 | struct p9_rwalk { | ||
600 | u16 nwqid; | ||
601 | struct p9_qid wqids[16]; | ||
602 | }; | ||
603 | |||
604 | struct p9_topen { | ||
605 | u32 fid; | ||
606 | u8 mode; | ||
607 | }; | ||
608 | |||
609 | struct p9_ropen { | ||
610 | struct p9_qid qid; | ||
611 | u32 iounit; | ||
612 | }; | ||
613 | |||
614 | struct p9_tcreate { | ||
615 | u32 fid; | ||
616 | struct p9_str name; | ||
617 | u32 perm; | ||
618 | u8 mode; | ||
619 | struct p9_str extension; | ||
620 | }; | ||
621 | |||
622 | struct p9_rcreate { | ||
623 | struct p9_qid qid; | ||
624 | u32 iounit; | ||
625 | }; | ||
626 | |||
627 | struct p9_tread { | ||
628 | u32 fid; | ||
629 | u64 offset; | ||
630 | u32 count; | ||
631 | }; | ||
632 | |||
633 | struct p9_rread { | ||
634 | u32 count; | ||
635 | u8 *data; | ||
636 | }; | ||
637 | |||
638 | struct p9_twrite { | ||
639 | u32 fid; | ||
640 | u64 offset; | ||
641 | u32 count; | ||
642 | u8 *data; | ||
643 | }; | ||
644 | |||
645 | struct p9_rwrite { | ||
646 | u32 count; | ||
647 | }; | ||
648 | |||
649 | struct p9_treaddir { | ||
650 | u32 fid; | ||
651 | u64 offset; | ||
652 | u32 count; | ||
653 | }; | ||
654 | |||
655 | struct p9_rreaddir { | ||
656 | u32 count; | ||
657 | u8 *data; | ||
658 | }; | ||
659 | |||
660 | |||
661 | struct p9_tclunk { | ||
662 | u32 fid; | ||
663 | }; | ||
664 | |||
665 | struct p9_rclunk { | ||
666 | }; | ||
667 | |||
668 | struct p9_tremove { | ||
669 | u32 fid; | ||
670 | }; | ||
671 | |||
672 | struct p9_rremove { | ||
673 | }; | ||
674 | |||
675 | struct p9_tstat { | ||
676 | u32 fid; | ||
677 | }; | ||
678 | |||
679 | struct p9_rstat { | ||
680 | struct p9_wstat stat; | ||
681 | }; | ||
682 | |||
683 | struct p9_twstat { | ||
684 | u32 fid; | ||
685 | struct p9_wstat stat; | ||
686 | }; | ||
687 | |||
688 | struct p9_rwstat { | ||
689 | }; | ||
690 | |||
691 | /** | 518 | /** |
692 | * struct p9_fcall - primary packet structure | 519 | * struct p9_fcall - primary packet structure |
693 | * @size: prefixed length of the structure | 520 | * @size: prefixed length of the structure |