mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
daprobedone: announce if a disk is write-protected
MFC after: 2 weeks
This commit is contained in:
parent
2605ddfce9
commit
2e2b365e47
1 changed files with 5 additions and 0 deletions
|
|
@ -2472,6 +2472,11 @@ daprobedone(struct cam_periph *periph, union ccb *ccb)
|
|||
printf("%s%d: %s\n", periph->periph_name,
|
||||
periph->unit_number, buf);
|
||||
}
|
||||
if ((softc->disk->d_flags & DISKFLAG_WRITE_PROTECT) != 0 &&
|
||||
(softc->flags & DA_FLAG_ANNOUNCED) == 0) {
|
||||
printf("%s%d: Write Protected\n", periph->periph_name,
|
||||
periph->unit_number);
|
||||
}
|
||||
|
||||
/*
|
||||
* Since our peripheral may be invalidated by an error
|
||||
|
|
|
|||
Loading…
Reference in a new issue