patch-2.3.46 linux/include/linux/genhd.h

Next file: linux/include/linux/hysdn_if.h
Previous file: linux/include/linux/fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.45/linux/include/linux/genhd.h linux/include/linux/genhd.h
@@ -29,7 +29,7 @@
 #define EZD_PARTITION		0x55	/* EZ-DRIVE */
 #define DM6_AUX1PARTITION	0x51	/* no DDO:  use xlated geom */
 #define DM6_AUX3PARTITION	0x53	/* no DDO:  use xlated geom */
-	
+
 struct partition {
 	unsigned char boot_ind;		/* 0x80 - active */
 	unsigned char head;		/* starting head */
@@ -43,12 +43,18 @@
 	unsigned int nr_sects;		/* nr of sectors in partition */
 } __attribute__((packed));
 
+#ifdef __KERNEL__
+#  include <linux/devfs_fs_kernel.h>
+
 struct hd_struct {
 	long start_sect;
 	long nr_sects;
 	int type;			/* currently RAID or normal */
+	devfs_handle_t de;              /* primary (master) devfs entry  */
 };
 
+#define GENHD_FL_REMOVABLE  1
+
 struct gendisk {
 	int major;			/* major number of driver */
 	const char *major_name;		/* name of major driver */
@@ -62,7 +68,12 @@
 
 	void *real_devices;		/* internal use */
 	struct gendisk *next;
+	struct block_device_operations *fops;
+
+	devfs_handle_t *de_arr;         /* one per physical disc */
+	char *flags;                    /* one per physical disc */
 };
+#endif  /*  __KERNEL__  */
 
 #ifdef CONFIG_SOLARIS_X86_PARTITION
 
@@ -217,7 +228,11 @@
 
 char *disk_name (struct gendisk *hd, int minor, char *buf);
 
+extern void devfs_register_partitions (struct gendisk *dev, int minor,
+				       int unregister);
+
 int get_hardsect_size(kdev_t dev);
+
 #endif
 
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)