Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ff7190
)
r=liangzhen
author
isaac
<isaac>
Wed, 1 Mar 2006 07:26:40 +0000
(07:26 +0000)
committer
isaac
<isaac>
Wed, 1 Mar 2006 07:26:40 +0000
(07:26 +0000)
Without the 'W' flag, xnu bsd won't copy obd_ioctl_data into kernel space.
lustre/include/lustre_lib.h
patch
|
blob
|
history
diff --git
a/lustre/include/lustre_lib.h
b/lustre/include/lustre_lib.h
index
a9e94c4
..
13ceaef
100644
(file)
--- a/
lustre/include/lustre_lib.h
+++ b/
lustre/include/lustre_lib.h
@@
-403,7
+403,7
@@
static inline void obd_ioctl_freedata(char *buf, int len)
#define OBD_IOC_PREALLOCATE _IOWR('f', 105, OBD_IOC_DATA_TYPE)
#define OBD_IOC_SETATTR _IOW ('f', 107, OBD_IOC_DATA_TYPE)
-#define OBD_IOC_GETATTR _IOR ('f', 108, OBD_IOC_DATA_TYPE)
+#define OBD_IOC_GETATTR _IO
W
R ('f', 108, OBD_IOC_DATA_TYPE)
#define OBD_IOC_READ _IOWR('f', 109, OBD_IOC_DATA_TYPE)
#define OBD_IOC_WRITE _IOWR('f', 110, OBD_IOC_DATA_TYPE)