Bob Marley posted on Mon, 31 Mar 2014 19:04:38 +0200 as excerpted:
> Hi, I hadn't noticed this post,
> I think I know the reason this time : you have used USB you bad guy!
> I think USB does not support flush / barrier , which is mandatory for
> BTRFS to work correctly in case of power loss.
> For most filesystems actually, but the damages suffered by COW
> filesystems such as btrfs are much more severe than for static
> filesystems such as ext4 .
>
> Please check if when you connect the USB drive you see in dmesg
> something like:
>
> |[ .... . .....] sd ...:0:0:0: [sdf] Write cache: ....., read cache:
> ....., doesn't support DPO or FUA
> |
Umm... Most direct-connect SATA drives are apparently missing DPO/FUA
also, or at least it's not normally enabled by the driver. Certainly
that's what dmesg says for my SATA drives here, tho for the pair of SSDs
(but not the spinning rust) hdparm -I says WRITE__{DMA|MULTIPLE}_FUA_EXT
is enabled (star in the enabled column), while WRITE_DMA_QUEUED_FUA_EXT
is not (no star).
Google says only enterprise-grade SAS/SCSI drives are likely to have it.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html