Menu

#183 fsstat Ext3 percent used inodes bug

open
nobody
5
2011-07-19
2011-07-19
No

From July 12 posting to users list by KillBOy PowerHed:

Hi list,

I was playing about this morning and found what looks like a bug in fsstat output, a quick search didn't turn anything up...

Distro: Fedora 15 x86_64
TSK ver: 3.2.2
Installed via: package
Specific tool: fsstat
Description: free inodes percentage for group 1 mangled

Example output:
#---------------------------------------------------------#
[me@host Downloads]$ dd if=/dev/zero of=10mbfs bs=1024 count=10000
10000+0 records in
10000+0 records out
10240000 bytes (10 MB) copied, 0.0400749 s, 256 MB/s
[me@host Downloads]$ mkfs.ext3 10mbfs
mke2fs 1.41.14 (22-Dec-2010)
10mbfs is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
2512 inodes, 10000 blocks
500 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=10485760
2 block groups
8192 blocks per group, 8192 fragments per group
1256 inodes per group
Superblock backups stored on blocks:
8193

Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[me@host Downloads]$ fsstat 10mbfs
FILE SYSTEM INFORMATION
--------------------------------------------
File System Type: Ext3
Volume Name:
Volume ID: f46660d78d1567ba834c52c467bf01c6

Last Written at: Wed Jul 13 07:54:08 2011
Last Checked at: Wed Jul 13 07:54:08 2011

Last Mounted at: emptyUnmounted properly
Last mounted on:

Source OS: Linux
Dynamic Structure
Compat Features: Journal, Ext Attributes, Resize Inode, Dir Index
InCompat Features: Filetype,
Read Only Compat Features: Sparse Super,

Journal ID: 00
Journal Inode: 8

METADATA INFORMATION
--------------------------------------------
Inode Range: 1 - 2513
Root Directory: 2
Free Inodes: 2501

CONTENT INFORMATION
--------------------------------------------
Block Range: 0 - 9999
Block Size: 1024
Reserved Blocks Before Block Groups: 1
Free Blocks: 8556

BLOCK GROUP INFORMATION
--------------------------------------------
Number of Block Groups: 2
Inodes per group: 1256
Blocks per group: 8192

Group: 0:
Inode Range: 1 - 1256
Block Range: 1 - 8192
Layout:
Super Block: 1 - 1
Group Descriptor Table: 2 - 2
Data bitmap: 42 - 42
Inode bitmap: 43 - 43
Inode Table: 44 - 200
Data Blocks: 201 - 8192
Free Inodes: 1245 (99%)
Free Blocks: 6949 (84%)
Total Directories: 2

Group: 1:
Inode Range: 1257 - 2512
Block Range: 8193 - 9999
Layout:
Super Block: 8193 - 8193
Group Descriptor Table: 8194 - 8194
Data bitmap: 8234 - 8234
Inode bitmap: 8235 - 8235
Inode Table: 8236 - 8392
Data Blocks: 8393 - 9999
Free Inodes: 1256 (125600%)
Free Blocks: 1607 (88%)
Total Directories: 0
[me@host Downloads]$ fsstat -V
The Sleuth Kit ver 3.2.2
#---------------------------------------------------------#

cheers

Discussion


Log in to post a comment.