Rev 2689 | Rev 2691 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2689 | Rev 2690 | ||
---|---|---|---|
Line 743... | Line 743... | ||
743 | 743 | ||
744 | 744 | ||
745 | /* |
745 | /* |
746 | * Check if the FS implements mandatory VFS operations. |
746 | * Check if the FS implements mandatory VFS operations. |
747 | */ |
747 | */ |
748 | if (info->ops[IPC_METHOD_TO_VFS_OP(VFS_REGISTER)] != VFS_OP_DEFINED) { |
- | |
749 | dprintf("Operation VFS_REGISTER not defined by the client.\n"); |
- | |
750 | return false; |
- | |
751 | } |
- | |
752 | if (info->ops[IPC_METHOD_TO_VFS_OP(VFS_MOUNT)] != VFS_OP_DEFINED) { |
- | |
753 | dprintf("Operation VFS_MOUNT not defined by the client.\n"); |
- | |
754 | return false; |
- | |
755 | } |
- | |
756 | if (info->ops[IPC_METHOD_TO_VFS_OP(VFS_UNMOUNT)] != VFS_OP_DEFINED) { |
- | |
757 | dprintf("Operation VFS_UNMOUNT not defined by the client.\n"); |
- | |
758 | return false; |
- | |
759 | } |
- | |
760 | if (info->ops[IPC_METHOD_TO_VFS_OP(VFS_LOOKUP)] != VFS_OP_DEFINED) { |
748 | if (info->ops[IPC_METHOD_TO_VFS_OP(VFS_LOOKUP)] != VFS_OP_DEFINED) { |
761 | dprintf("Operation VFS_LOOKUP not defined by the client.\n"); |
749 | dprintf("Operation VFS_LOOKUP not defined by the client.\n"); |
762 | return false; |
750 | return false; |
763 | } |
751 | } |
764 | if (info->ops[IPC_METHOD_TO_VFS_OP(VFS_OPEN)] != VFS_OP_DEFINED) { |
752 | if (info->ops[IPC_METHOD_TO_VFS_OP(VFS_OPEN)] != VFS_OP_DEFINED) { |
Line 775... | Line 763... | ||
775 | } |
763 | } |
776 | 764 | ||
777 | /* |
765 | /* |
778 | * Check if each operation is either not defined, defined or default. |
766 | * Check if each operation is either not defined, defined or default. |
779 | */ |
767 | */ |
780 | for (i = VFS_FIRST; i < VFS_LAST; i++) { |
768 | for (i = VFS_FIRST; i < VFS_LAST_CLNT; i++) { |
781 | if ((info->ops[IPC_METHOD_TO_VFS_OP(i)] != VFS_OP_NULL) && |
769 | if ((info->ops[IPC_METHOD_TO_VFS_OP(i)] != VFS_OP_NULL) && |
782 | (info->ops[IPC_METHOD_TO_VFS_OP(i)] != VFS_OP_DEFAULT) && |
770 | (info->ops[IPC_METHOD_TO_VFS_OP(i)] != VFS_OP_DEFAULT) && |
783 | (info->ops[IPC_METHOD_TO_VFS_OP(i)] != VFS_OP_DEFINED)) { |
771 | (info->ops[IPC_METHOD_TO_VFS_OP(i)] != VFS_OP_DEFINED)) { |
784 | dprintf("Operation info not understood.\n"); |
772 | dprintf("Operation info not understood.\n"); |
785 | return false; |
773 | return false; |