Skip to content

Update to icheck.sh

June 7, 2006

I have updated my icheck.sh script so that it now finds fragments. If you request it look for a fragment it will find all the inodes that use the block that contains that fragment.

 # ~cg13442/lang/sh/icheck -d /dev/rdsk/c0t0d0s0  dd6d7 2> /tmp/err dd6d7 is a fragment address. Rounding to block 16#dd6d0 inode 1ade4: file block: 16#0 device block: 16#dd6d7 inode 1adc8: file block: 16#0 device block: 16#dd6d0 # find / -xdev \( -inum $((16#1ade4)) -o -inum $(( 16#1adc8 )) \) -print /usr/apache/htdocs/manual/mod/mod_speling.html.ja.jis /etc/passwd # 

The script is here.

Tags: topic:[ufs] topic:[solaris] topic:[icheck]

Advertisements

From → Solaris

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: