* Type of filesystem block
@ 2013-03-24 16:35 Subranshu Patel
2013-03-24 19:00 ` Theodore Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: Subranshu Patel @ 2013-03-24 16:35 UTC (permalink / raw)
To: linux-ext4
Query related to finding the block usage information of metadata
blocks in ext4 filesystem.
Using debugfs testb command I can check whether a particular
filesystem block is used or not.
# debugfs -R "testb 171428" /dev/sdd4
debugfs 1.41.12 (17-May-2010)
Block 171428 marked in use
Also its icheck command prints the inode associated, if any, with a
filesystem block.
# debugfs -R "icheck 171428" /dev/sdd4
debugfs 1.41.12 (17-May-2010)
Block Inode number
171428 65152
But I don’t find any debugfs command which can show similar block
usage information about metadata blocks, whether it is a superblock,
or inode bitmap block or block group descriptor, etc.
Is there any way to extract the usage information of metadata blocks
in ext4 filesystem ?
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Type of filesystem block
2013-03-24 16:35 Type of filesystem block Subranshu Patel
@ 2013-03-24 19:00 ` Theodore Ts'o
0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2013-03-24 19:00 UTC (permalink / raw)
To: Subranshu Patel; +Cc: linux-ext4
On Sun, Mar 24, 2013 at 10:05:12PM +0530, Subranshu Patel wrote:
> But I don’t find any debugfs command which can show similar block
> usage information about metadata blocks, whether it is a superblock,
> or inode bitmap block or block group descriptor, etc.
> Is there any way to extract the usage information of metadata blocks
> in ext4 filesystem ?
There isn't one today. Normally I'll just look it up using the output
of dumpe2fs.
What's the use case where you need to get that information? We could
add that as a new feature into debugfs, but it might be helpful to
understand the circumstances where you're needing that feature to
understand how best to add it into debugfs (or maybe some other
e2fsprogs command, such as e2fsck --- although in many cases e2fsck
has some of this already).
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-24 19:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-24 16:35 Type of filesystem block Subranshu Patel
2013-03-24 19:00 ` Theodore Ts'o
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.