patch-2.4.18 linux/drivers/s390/block/dasd_eckd.c
Next file: linux/drivers/s390/block/dasd_int.h
Previous file: linux/drivers/s390/block/dasd_3990_erp.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Fri Dec 21 16:25:30 2001
- Orig file:
linux.orig/drivers/s390/block/dasd_eckd.c
- Orig date:
Mon Feb 18 20:18:40 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/drivers/s390/block/dasd_eckd.c linux/drivers/s390/block/dasd_eckd.c
@@ -585,7 +585,7 @@
/* Free the cqr and cleanup device->sizes */
if ( status != CQR_STATUS_DONE ) {
DASD_MESSAGE (KERN_WARNING,device,"%s",
- "volume analysis returned fatal error");
+ "volume analysis returned unformatted disk");
return -EMEDIUMTYPE;
}
/* Check Track 0 for Compatible Disk Layout */
@@ -1097,8 +1097,14 @@
ccw->flags |= CCW_FLAG_CC;
ccw->cmd_code = locate4k_set ? rw_cmd :
dasd_eckd_cdl_cmd (device, recid, req->cmd);
- ccw->count = locate4k_set ? byt_per_blk :
- dasd_eckd_cdl_reclen (device, recid);
+ ccw->count = byt_per_blk;
+ if (!locate4k_set) {
+ ccw->count = dasd_eckd_cdl_reclen (device,recid);
+ if (ccw->count < byt_per_blk) {
+ memset (bh->b_data + size + ccw->count,
+ 0xE5, byt_per_blk - ccw->count);
+ }
+ }
if (dasd_set_normalized_cda (ccw, __pa (bh->b_data+size), rw_cp, device)) {
goto clear_rw_cp;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)