aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/diskslice.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-06-06 02:32:51 +0000
committerBruce Evans <bde@FreeBSD.org>1998-06-06 02:32:51 +0000
commitfbfd95bb1cc024ec26d988f4d7c19314cbd0c85b (patch)
treee45d877448c177e13d6bf535d4bb9580a52d4fe0 /sys/sys/diskslice.h
parent00ef38360e0957e5703d3c91f40cac8d0e9028ca (diff)
downloadsrc-fbfd95bb1cc024ec26d988f4d7c19314cbd0c85b.tar.gz
src-fbfd95bb1cc024ec26d988f4d7c19314cbd0c85b.zip
Removed dead code.
Notes
Notes: svn path=/head/; revision=36684
Diffstat (limited to 'sys/sys/diskslice.h')
-rw-r--r--sys/sys/diskslice.h36
1 files changed, 1 insertions, 35 deletions
diff --git a/sys/sys/diskslice.h b/sys/sys/diskslice.h
index d0c295be86d1..bf25029b6e18 100644
--- a/sys/sys/diskslice.h
+++ b/sys/sys/diskslice.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: diskslice.h,v 1.20 1997/02/22 09:45:06 peter Exp $
+ * $Id: diskslice.h,v 1.21 1997/09/16 14:31:44 bde Exp $
*/
#ifndef _SYS_DISKSLICE_H_
@@ -41,8 +41,6 @@
#define MAX_SLICES 32
#define WHOLE_DISK_SLICE 1
-/* upcoming change from julian.. early warning of probable form */
-#if 1
struct diskslice {
u_long ds_offset; /* starting sector */
u_long ds_size; /* number of sectors */
@@ -70,38 +68,6 @@ struct diskslice {
u_char ds_wlabel; /* nonzero if label is writable */
};
-#else
-/* switch table for slice handlers (sample only) */
-struct slice_switch {
- int (*slice_load)();
- int (*slice_check)();
- int (*slice_gone)();
- /*
- * etc.
- * each routine is called with the address of the private data
- * and the minor number..
- * Other arguments as needed
- */
-};
-
-struct diskslice {
- u_long ds_offset; /* starting sector */
- u_long ds_size; /* number of sectors */
- int ds_type; /* (foreign) slice type */
-#ifdef PC98
- int ds_subtype; /* sub slice type */
- u_char ds_name[16]; /* slice name */
-#endif
- struct dkbad_intern *ds_bad; /* bad sector table, if any */
- void *ds_date; /* Slice type specific data */
- struct slice_switch *switch; /* switch table for type handler */
- u_char ds_bopenmask; /* bdevs open */
- u_char ds_copenmask; /* cdevs open */
- u_char ds_openmask; /* [bc]devs open */
- u_char ds_wlabel; /* nonzero if label is writable */
-};
-#endif
-
struct diskslices {
struct bdevsw *dss_bdevsw; /* for containing device */
struct cdevsw *dss_cdevsw; /* for containing device */