diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-08-01 09:18:19 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-08-01 09:18:19 +0200 |
commit | 42f40cd370644cb1bc7bb7107711e157c7ba91c3 (patch) | |
tree | 32001fdbae7387443e9fe0790fba1a5319eff56e | |
parent | Merge "recovery: Add ability to interrupt UI" (diff) | |
parent | uncrypt: fix f2fs ioctl argument for pin_file (diff) | |
download | android_bootable_recovery-42f40cd370644cb1bc7bb7107711e157c7ba91c3.tar android_bootable_recovery-42f40cd370644cb1bc7bb7107711e157c7ba91c3.tar.gz android_bootable_recovery-42f40cd370644cb1bc7bb7107711e157c7ba91c3.tar.bz2 android_bootable_recovery-42f40cd370644cb1bc7bb7107711e157c7ba91c3.tar.lz android_bootable_recovery-42f40cd370644cb1bc7bb7107711e157c7ba91c3.tar.xz android_bootable_recovery-42f40cd370644cb1bc7bb7107711e157c7ba91c3.tar.zst android_bootable_recovery-42f40cd370644cb1bc7bb7107711e157c7ba91c3.zip |
-rw-r--r-- | uncrypt/uncrypt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/uncrypt/uncrypt.cpp b/uncrypt/uncrypt.cpp index 16036f9ce..95f40c71f 100644 --- a/uncrypt/uncrypt.cpp +++ b/uncrypt/uncrypt.cpp @@ -332,7 +332,8 @@ static int produce_block_map(const char* path, const char* map_file, const char* #define F2FS_IOC_GET_PIN_FILE _IOW(F2FS_IOCTL_MAGIC, 14, __u32) #endif if (f2fs_fs) { - int error = ioctl(fd, F2FS_IOC_SET_PIN_FILE); + __u32 set = 1; + int error = ioctl(fd, F2FS_IOC_SET_PIN_FILE, &set); // Don't break the old kernels which don't support it. if (error && errno != ENOTTY && errno != ENOTSUP) { PLOG(ERROR) << "Failed to set pin_file for f2fs: " << path << " on " << blk_dev; |