summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2005-05-02 07:06:50 +0000
committersos <sos@FreeBSD.org>2005-05-02 07:06:50 +0000
commitd1f3a4ab408662e8b5b8c84985418eaa983eafba (patch)
tree761975a6ba12a9811f1e5b5f37311b2f818b5bfe /sys/dev/ata
parentf1dec39efb93fb7d804a13eb661667485bc53705 (diff)
downloadFreeBSD-src-d1f3a4ab408662e8b5b8c84985418eaa983eafba.zip
FreeBSD-src-d1f3a4ab408662e8b5b8c84985418eaa983eafba.tar.gz
Always attach a subdisk even if no valid metadata found.
This allows the disks to be used later in a raid create.
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/ata-raid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c
index 845e48f..3560b34 100644
--- a/sys/dev/ata/ata-raid.c
+++ b/sys/dev/ata/ata-raid.c
@@ -3073,7 +3073,8 @@ ata_raid_subdisk_attach(device_t dev)
ars->raid = NULL;
ars->disk_number = -1;
- return ata_raid_read_metadata(dev);
+ ata_raid_read_metadata(dev);
+ return 0;
}
static int
OpenPOWER on IntegriCloud