Merge "fix wrong ioctl direction for F2FS_IOC_GET_PIN_FILE"

This commit is contained in:
Treehugger Robot 2018-09-13 19:03:41 +00:00 committed by Gerrit Code Review
commit 3a7f95af09

View file

@ -73,7 +73,7 @@ int main(int argc, const char * const argv[]) {
#define F2FS_IOCTL_MAGIC 0xf5
#endif
#define F2FS_IOC_SET_PIN_FILE _IOW(F2FS_IOCTL_MAGIC, 13, __u32)
#define F2FS_IOC_GET_PIN_FILE _IOW(F2FS_IOCTL_MAGIC, 14, __u32)
#define F2FS_IOC_GET_PIN_FILE _IOR(F2FS_IOCTL_MAGIC, 14, __u32)
#endif
android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(
target.c_str(), O_WRONLY, 0)));