Skip to contentSkip to conversation

btrfs Bug?

DISCUSSION Justin 2 participants 2 messages Apr 10, 2010 – Apr 12, 2010 Btrfs file system

lore
Share & tools
lore

Justin

author
#0 lore raw

As far as I know TRIM was enabled. I didn't forcibly disable it and I'm under the assumption that btrfs enables it when an SSD is detected.

---------- Original Message ----------
From: Chris Mason <[email protected]>
To: Justin <[email protected]>
Cc: [email protected]
Subject: Re: btrfs Bug?
Date: Fri, 9 Apr 2010 07:18:44 -0400

Quoted 4 lines · Justin

Unfortunately I did reformat.
Actually, I did a complete zero-out of the drive with dd, and then I ran "badblocks -w" on the drive, which returned 0 bad blocks (not sure if this is really a good test for SSD's as there's some amount of internal voo-doo on the drive itself).

For future reference, how would I go about getting an image of the drive without being able to use btrfs-image?

Well, we'll have to fixup btrfs-image to make it more tolerant of errors. It needs options to skip corrupted sections of the btree and encode what it can.

In this case, I would have had you run btrfs-map-logical, which will just read the one bad block and save its contents.

We've had cases on ssd where every other byte was ff, so I was curious how the bad block looked on your intel.

Were you running with trim enabled?

-chris

____________________________________________________________
Penny Stock Jumping 2000%
Sign up to the #1 voted penny stock newsletter for free today!
http://thirdpartyoffers.netzero.net/TGL3231/4bbfec7c95e751a3b6bst04vuc

#1 lore raw
Quoted 1 line · Justin

As far as I know TRIM was enabled. I didn't forcibly disable it and I'm under the assumption that btrfs enables it when an SSD is detected.

Btrfs won't use trim unless you do mount -o discard. So, if you weren't doing this that wasn't the cause.

-chris

Quoted 39 lines

---------- Original Message ----------
From: Chris Mason <[email protected]>
To: Justin <[email protected]>
Cc: [email protected]
Subject: Re: btrfs Bug?
Date: Fri, 9 Apr 2010 07:18:44 -0400

Quoted 4 lines · Justin

Unfortunately I did reformat.
Actually, I did a complete zero-out of the drive with dd, and then I ran "badblocks -w" on the drive, which returned 0 bad blocks (not sure if this is really a good test for SSD's as there's some amount of internal voo-doo on the drive itself).

For future reference, how would I go about getting an image of the drive without being able to use btrfs-image?

Well, we'll have to fixup btrfs-image to make it more tolerant of errors. It needs options to skip corrupted sections of the btree and encode what it can.

In this case, I would have had you run btrfs-map-logical, which will just read the one bad block and save its contents.

We've had cases on ssd where every other byte was ff, so I was curious how the bad block looked on your intel.

Were you running with trim enabled?

-chris

____________________________________________________________
Penny Stock Jumping 2000%
Sign up to the #1 voted penny stock newsletter for free today!
http://thirdpartyoffers.netzero.net/TGL3231/4bbfec7c95e751a3b6bst04vuc
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html