| To: | xfs-oss <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 2/2 V2] xfs_db: add crc manipulation commands |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Tue, 16 Sep 2014 17:06:17 -0500 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <5418574A.8040102@xxxxxxxxxxx> |
| References: | <540B4399.4020804@xxxxxxxxxxx> <5418574A.8040102@xxxxxxxxxxx> |
On 9/16/14 10:29 AM, Eric Sandeen wrote: > This adds a new "crc" command to xfs_db for CRC-enabled filesystems. > > If a structure has a CRC field, we can validate it, invalidate/corrupt > it, or revalidate/rewrite it: > > xfs_db> sb 0 > xfs_db> crc -v > crc = 0x796c814f (correct) > xfs_db> crc -i > Metadata CRC error detected at block 0x0/0x200 > crc = 0x796c8150 (bad) > xfs_db> crc -r > crc = 0x796c814f (correct) On reflection, do you think these should be more verbose, something like: xfs_db> sb 0 xfs_db> crc -v Validating crc: crc = 0x796c814f (correct) xfs_db> crc -i Invalidating CRC: Metadata CRC error detected at block 0x0/0x200 crc = 0x796c8150 (bad) xfs_db> crc -r Rewriting CRC: crc = 0x796c814f (correct) |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [ANNOUNCE] xfsprogs: master branch updated to 794b62f, Dave Chinner |
|---|---|
| Next by Date: | Re: unclean shutdown of usb hdd destroyed xfs partially, Dave Chinner |
| Previous by Thread: | [PATCH 2/2 V2] xfs_db: add crc manipulation commands, Eric Sandeen |
| Next by Thread: | Re: [PATCH 2/2 V2] xfs_db: add crc manipulation commands, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |