ref: fbafe5ad58ac4e2b9c3997934ea9e4b0115fa4b3
parent: b220675fe53ccc0077952a145ba8d96f93d5fe7f
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Nov 6 07:16:17 EST 2020
ext4_raw_inode_fill: make inode parameter optional (to get inode number alone)
--- a/src/ext4.c
+++ b/src/ext4.c
@@ -2121,8 +2121,9 @@
if (ret_ino)
*ret_ino = f.inode;
+ if (inode)
+ memcpy(inode, inode_ref.inode, sizeof(struct ext4_inode));
- memcpy(inode, inode_ref.inode, sizeof(struct ext4_inode));
ext4_fs_put_inode_ref(&inode_ref);
EXT4_MP_UNLOCK(mp);