Oops! Few quick fixes for r264274.
This commit is contained in:
parent
560ede85d4
commit
f7ad1c4625
@ -546,6 +546,7 @@ ctl_backend_ramdisk_create(struct ctl_be_ramdisk_softc *softc,
|
||||
|
||||
be_lun->softc = softc;
|
||||
|
||||
unmap = 0;
|
||||
for (i = 0; i < req->num_be_args; i++) {
|
||||
if (strcmp(req->kern_be_args[i].kname, "unmap") == 0 &&
|
||||
strcmp(req->kern_be_args[i].kvalue, "on") == 0) {
|
||||
@ -565,7 +566,7 @@ ctl_backend_ramdisk_create(struct ctl_be_ramdisk_softc *softc,
|
||||
be_lun->flags = CTL_BE_RAMDISK_LUN_UNCONFIGURED;
|
||||
be_lun->ctl_be_lun.flags = CTL_LUN_FLAG_PRIMARY;
|
||||
if (unmap)
|
||||
be_lun->ctl_be_lun.flags = CTL_LUN_FLAG_UNMAP;
|
||||
be_lun->ctl_be_lun.flags |= CTL_LUN_FLAG_UNMAP;
|
||||
be_lun->ctl_be_lun.be_lun = be_lun;
|
||||
|
||||
if (params->flags & CTL_LUN_FLAG_ID_REQ) {
|
||||
|
@ -858,7 +858,7 @@ struct scsi_unmap_header
|
||||
{
|
||||
uint8_t length[2];
|
||||
uint8_t desc_length[2];
|
||||
uint8_t reserved[8];
|
||||
uint8_t reserved[4];
|
||||
};
|
||||
|
||||
struct scsi_unmap_desc
|
||||
|
Loading…
Reference in New Issue
Block a user