From: isaac Date: Wed, 1 Mar 2006 07:26:40 +0000 (+0000) Subject: r=liangzhen X-Git-Tag: v1_7_140~1^12~3^2~22 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6da72c1ac77f35e4b4b65cec605386c0a77bd24d;p=fs%2Flustre-release.git r=liangzhen Without the 'W' flag, xnu bsd won't copy obd_ioctl_data into kernel space. --- diff --git a/lustre/include/lustre_lib.h b/lustre/include/lustre_lib.h index a9e94c4..13ceaef 100644 --- 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 _IOWR ('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)