Skip to contentSkip to conversation

Block corruption

DISCUSSION Andrew Snare 2 participants 2 messages Jun 8, 2004

lore
Share & tools
lore
#0 lore raw

Vladimir Saveliev suggested:

Quoted 5 lines

Well, reiserfs needs to include device name into its warnings Until it is not done you might want to do

find /mountpoint -inum 52653
for each of your reiserfs filesystem.

That number comes from the vs-13070 messages. They're of the form:

Quoted 2 lines

vs-13070: reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of [52570 52653 0x0 SD]

What are these numbers near the end? You've referred to the second as the inode, but we'd like to understand more clearly what's going on.

Cheers,

- Andrew

#1 lore raw

Hello

Quoted 7 lines · Andrew Snare

Vladimir Saveliev suggested:

Quoted 5 lines

Well, reiserfs needs to include device name into its warnings Until it is not done you might want to do

find /mountpoint -inum 52653
for each of your reiserfs filesystem.

Quoted 7 lines

That number comes from the vs-13070 messages. They're of the form:

Quoted 2 lines

vs-13070: reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of [52570 52653 0x0 SD]

What are these numbers near the end? You've referred to the second as the inode, but we'd like to understand more clearly what's going on.

reiserfs builds files of items. Item is stored in an ondisk tree. Each file has at least one item - stat data item. Each item has key. Key has 4 components.
[52570 52653 0x0 SD] is key of stat data. Key of stat data was taken from directory entry.
First key component is unique identifier of directory in which file was created.
Second key component is unique identifier of file itself. This is what is reported in st_ino field of struct stat
Third key component is offset within a file. It is 0 for items if stat data type.
Fourth key component is item type.

Quoted 4 lines

Cheers,

- Andrew