diff options
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index da02600c0ea..2e93ed0b1a6 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.251 2013/11/01 17:36:19 krw Exp $ */ +/* $OpenBSD: sd.c,v 1.252 2014/02/13 05:51:06 halex Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -233,6 +233,9 @@ sdattach(struct device *parent, struct device *self, void *aux) sortby = BUFQ_FIFO; printf(", thin"); } + if (ISSET(sc_link->flags, SDEV_READONLY)) { + printf(", readonly"); + } printf("\n"); break; |