diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2010-09-23 13:11:39 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2010-09-23 13:11:39 +0000 |
commit | 9ff999e5b9b73ca6f102ddb22fc7d68f22e0edd9 (patch) | |
tree | d43498b12011162aa24514f1f9f4654c5f9d6c7e /sys/arch/sparc | |
parent | 52abf012f24fa92a2e9c9207e0fd217599d4598f (diff) |
Introduce a DKF_NOLABELREAD flag, which is used by a device to prevent
automatic reading of disklabel on attach.
ok deraadt@ miod@ krw@
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/dev/fd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c index acf5e6ac2e6..84735be4ef5 100644 --- a/sys/arch/sparc/dev/fd.c +++ b/sys/arch/sparc/dev/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.77 2010/09/22 01:18:57 matthew Exp $ */ +/* $OpenBSD: fd.c,v 1.78 2010/09/23 13:11:38 jsing Exp $ */ /* $NetBSD: fd.c,v 1.51 1997/05/24 20:16:19 pk Exp $ */ /*- @@ -641,6 +641,7 @@ fdattach(parent, self, aux) /* * Initialize and attach the disk structure. */ + fd->sc_dk.dk_flags = DKF_NOLABELREAD; fd->sc_dk.dk_name = fd->sc_dv.dv_xname; disk_attach(&fd->sc_dev, &fd->sc_dk); |