summaryrefslogtreecommitdiffstats
path: root/sys/geom/notes
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-09-05 21:15:58 +0000
committerphk <phk@FreeBSD.org>2004-09-05 21:15:58 +0000
commit38ae102f61e34fccf24c864f91b3f2560e50b18b (patch)
tree147fda4145293281b55787fc3a7e6af561de17f6 /sys/geom/notes
parent2087edb93832a47d6a043b58602f699b1b2967a4 (diff)
downloadFreeBSD-src-38ae102f61e34fccf24c864f91b3f2560e50b18b.zip
FreeBSD-src-38ae102f61e34fccf24c864f91b3f2560e50b18b.tar.gz
For removable devices without media we set a zero mediasize but a non-zero
sectorsize in order to avoid a lot of checks around various divisions etc. Enforce the sectorsize being > 0 with a KASSERT on successful open. Fix scsi_cd.c to return 2k sectors when no media inserted.
Diffstat (limited to 'sys/geom/notes')
-rw-r--r--sys/geom/notes10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/geom/notes b/sys/geom/notes
index 3b0f811..4fcacae 100644
--- a/sys/geom/notes
+++ b/sys/geom/notes
@@ -138,3 +138,13 @@ application | | | | X | X |
geom_slice.h is special in that it documents a "library" for implementing
a specific kind of class, and consequently does not appear in the above
matrix.
+-----------------------------------------------------------------------
+Removable media.
+
+In general, the theory is that a drive creates the provider when it has
+a media and destroys it when the media disappears.
+
+In a more realistic world, we will allow a provider to be opened medialess
+(set any sectorsize and a mediasize==0) in order to allow operations like
+open/close tray etc.
+
OpenPOWER on IntegriCloud