Re: [PATCH 6/6] Btrfs-progs: detect if the disk we are formatting is a ssd

2013-01-22 Thread Chris Samuel
On 20/01/13 08:14, Brendan Hide wrote:

 Can't help but suggest that a NO_DEDUP command could be added to the
 SATA Transport Protocol/SCSI Command set. Not sure where to submit that
 idea ... :-/

Serial ATA International Organization (SATA-IO) maintain the specs for
SATA. Looks like membership is limited to companies and costs US$1,700 a
year.

http://sata-io.org/

SCSI is from the T10 committee:

http://www.t10.org/

The intro page indicates it's a fairly open group:

# T10 operates under INCITS and is responsible for SCSI Storage
# Interfaces. Its principal work is the Small Computer System
# Interface (SCSI), including the family of SCSI-3 projects.
# Anyone directly and materially affected is welcome to
# participate on T10 (essentially, this amounts to anyone
# interested in T10's work).

cheers,
Chris
-- 
 Chris Samuel  :  http://www.csamuel.org/  :  Melbourne, VIC
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 6/6] Btrfs-progs: detect if the disk we are formatting is a ssd

2013-01-21 Thread David Sterba
On Sat, Jan 19, 2013 at 11:14:09PM +0200, Brendan Hide wrote:
 On 2013/01/19 08:06 PM, Gene Czarcinski wrote:
 Signed-off-by: Josef Bacik jba...@fusionio.com
 Signed-off-by: Gene Czarcinski g...@czarc.net
 ---
 -values are raid0, raid1, raid10 or single.
 +values are raid0, raid1, raid10, single or dup.  Single device will have dup
 +set by default except in the case of SSDs which will default to single.  
 This is
 +because SSDs can remap blocks internally so duplicate blocks could end up 
 in the
 +same erase block which negates the benefits of doing metadata duplication.
 Can't help but suggest that a NO_DEDUP command could be added to the SATA
 Transport Protocol/SCSI Command set. Not sure where to submit that idea ...
 :-/

You might get your answer from lkml, fsdevel or linux-scsi.

david
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 6/6] Btrfs-progs: detect if the disk we are formatting is a ssd

2013-01-19 Thread Brendan Hide

On 2013/01/19 08:06 PM, Gene Czarcinski wrote:

Signed-off-by: Josef Bacik jba...@fusionio.com
Signed-off-by: Gene Czarcinski g...@czarc.net
---
-values are raid0, raid1, raid10 or single.
+values are raid0, raid1, raid10, single or dup.  Single device will have dup
+set by default except in the case of SSDs which will default to single.  This 
is
+because SSDs can remap blocks internally so duplicate blocks could end up in 
the
+same erase block which negates the benefits of doing metadata duplication.
Can't help but suggest that a NO_DEDUP command could be added to the 
SATA Transport Protocol/SCSI Command set. Not sure where to submit that 
idea ... :-/


--
Brendan Hide

http://swiftspirit.co.za/

--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html