From 9318a6b947b9379c85631d0e85532d9aac6f1115 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 24 Jan 2012 13:01:39 +0100 Subject: Revert "Add mmap() and munmap() methods to low level API" This partially reverts commit 4b2157c44e6ad7e692fcffb7450143e83151d36b. Remove mmap/munmap suppor as this missed the interface changes for Linux-3.3 (API version 7.18). Only revert the mmap/munmap bits and leave the retrieve_reply API fix in place as well as the optimization in fuse_send_data_iov_fallback(). --- include/fuse_kernel.h | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'include/fuse_kernel.h') diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h index 89e941a..7b43cb0 100644 --- a/include/fuse_kernel.h +++ b/include/fuse_kernel.h @@ -80,7 +80,6 @@ * 7.18 * - add FUSE_IOCTL_DIR flag * - add FUSE_NOTIFY_DELETE - * - add FUSE_MMAP and FUSE_MUNMAP */ #ifndef _LINUX_FUSE_H @@ -310,8 +309,6 @@ enum fuse_opcode { FUSE_POLL = 40, FUSE_NOTIFY_REPLY = 41, FUSE_BATCH_FORGET = 42, - FUSE_MMAP = 43, - FUSE_MUNMAP = 44, /* CUSE specific operations */ CUSE_INIT = 4096, @@ -605,28 +602,6 @@ struct fuse_notify_poll_wakeup_out { __u64 kh; }; -struct fuse_mmap_in { - __u64 fh; - __u64 addr; - __u64 len; - __u32 prot; - __u32 flags; - __u64 offset; -}; - -struct fuse_mmap_out { - __u64 mapid; /* Mmap ID, same namespace as Inode ID */ - __u64 size; /* Size of memory region */ - __u64 reserved; -}; - -struct fuse_munmap_in { - __u64 fh; - __u64 mapid; - __u64 size; /* Size of memory region */ - __u64 reserved; -}; - struct fuse_in_header { __u32 len; __u32 opcode; -- cgit v1.2.3