diff options
author | Jaegeuk Kim <jaegeuk@google.com> | 2018-08-01 09:31:21 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-08-01 09:31:21 +0200 |
commit | e0b4784c098c994ea5b0fab7e011e30addf641eb (patch) | |
tree | 3dc6b6c727dc61a8762979d6237315987edd28ac | |
parent | Merge "recovery: Add ability to interrupt UI" am: 561ee9362c am: 3528139409 (diff) | |
parent | Merge "uncrypt: fix f2fs ioctl argument for pin_file" am: 42f40cd370 (diff) | |
download | android_bootable_recovery-e0b4784c098c994ea5b0fab7e011e30addf641eb.tar android_bootable_recovery-e0b4784c098c994ea5b0fab7e011e30addf641eb.tar.gz android_bootable_recovery-e0b4784c098c994ea5b0fab7e011e30addf641eb.tar.bz2 android_bootable_recovery-e0b4784c098c994ea5b0fab7e011e30addf641eb.tar.lz android_bootable_recovery-e0b4784c098c994ea5b0fab7e011e30addf641eb.tar.xz android_bootable_recovery-e0b4784c098c994ea5b0fab7e011e30addf641eb.tar.zst android_bootable_recovery-e0b4784c098c994ea5b0fab7e011e30addf641eb.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; |