Skip to content

Commit

Permalink
ext4_dirlock: unit of inode blocks is sector
Browse files Browse the repository at this point in the history
Orabug: 37361260

Signed-off-by: Junxiao Bi <[email protected]>
  • Loading branch information
biger410 authored and brenns10 committed Dec 6, 2024
1 parent ecc99b0 commit 63cb679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drgn_tools/ext4_dirlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
dentry : 0xffff9bd0bd8a3a40
inode : 0xffff9bd9d09611e8
Size : 21835776
Blocks : 42728
Sectors : 42728
Inode Lock : Command Pid Status Lastrun2now(ms)
Lock owner : ohasd.bin 106479 D 259
Lock waiter :
Expand Down Expand Up @@ -152,7 +152,7 @@ def ext4_dirlock_scan(prog: drgn.Program, stacktrace: bool = False) -> None:
print("%-12s: 0x%x" % ("dentry", dentry.value_()))
print("%-12s: 0x%x" % ("inode", inode.value_()))
print("%-12s: %d" % ("Size", inode.i_size.value_()))
print("%-12s: %d" % ("Blocks", inode.i_blocks.value_()))
print("%-12s: %d" % ("Sectors", inode.i_blocks.value_()))
print(
"%-12s: %d"
% ("subdirs", count(list_for_each(dentry.d_subdirs.address_of_())))
Expand Down

0 comments on commit 63cb679

Please sign in to comment.