Skip to content

Commit 36fce63

Browse files
committed
crash.subsystem.filesystem: include sector number when describing dio bio
Knowing a particular bio is dio isn't entirely helpful when there are multiples of them. This includes the sector number as well. Signed-off-by: Jeff Mahoney <jeffm@suse.com>
1 parent 314d9fe commit 36fce63

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎crash/subsystem/filesystem/__init__.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,9 @@ def decode_dio_bio(cls, bio):
193193
offset = dio['block_in_file'] << dio['blkbits']
194194

195195
chain = {
196-
'description' : "{:x} bio: Direct I/O for {} inode {} on {}".format(
197-
int(bio), fstype, dio['inode']['i_ino'], dev),
196+
'description' : "{:x} bio: Direct I/O for {} inode {}, sector {} on {}".format(
197+
int(bio), fstype, dio['inode']['i_ino'],
198+
bio['bi_sector'], dev),
198199
'bio' : bio,
199200
'dio' : dio,
200201
'fstype' : fstype,

0 commit comments

Comments
 (0)