aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>2005-08-04 18:39:36 +0000
committerSøren Schmidt <sos@FreeBSD.org>2005-08-04 18:39:36 +0000
commit08f722560900fa29392aab82099aeaa70ba95160 (patch)
tree1098ad403e6336598527d6f21c1512c4763bc790
parentfa4679950b4f2458f9af5f1ef9642d3183ed703b (diff)
downloadsrc-08f722560900fa29392aab82099aeaa70ba95160.tar.gz
src-08f722560900fa29392aab82099aeaa70ba95160.zip
Dont limit all transfers to DEV_BSIZE (stale dbug code)
Hide the loaded/unloaded message behind bootverbose
Notes
Notes: svn path=/head/; revision=148704
-rw-r--r--sys/dev/ata/ata-raid.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c
index b8e2ce5b3ebc..046d6a1c05f4 100644
--- a/sys/dev/ata/ata-raid.c
+++ b/sys/dev/ata/ata-raid.c
@@ -3114,7 +3114,6 @@ ata_raid_send_request(struct ata_request *request)
struct ata_device *atadev = device_get_softc(request->dev);
request->transfersize = min(request->bytecount, atadev->max_iosize);
- request->transfersize = DEV_BSIZE;
if (request->flags & ATA_R_READ) {
if (atadev->mode >= ATA_DMA) {
request->flags |= ATA_R_DMA;
@@ -3260,7 +3259,8 @@ ata_raid_module_event_handler(module_t mod, int what, void *arg)
switch (what) {
case MOD_LOAD:
- printf("ATA PseudoRAID loaded\n");
+ if (bootverbose)
+ printf("ATA PseudoRAID loaded\n");
#if 0
/* setup table to hold metadata for all ATA PseudoRAID arrays */
ata_raid_arrays = malloc(sizeof(struct ar_soft *) * MAX_ARRAYS,
@@ -3292,7 +3292,8 @@ ata_raid_module_event_handler(module_t mod, int what, void *arg)
continue;
disk_destroy(rdp->disk);
}
- printf("ATA PseudoRAID unloaded\n");
+ if (bootverbose)
+ printf("ATA PseudoRAID unloaded\n");
#if 0
free(ata_raid_arrays, M_AR);
#endif