patch-2.3.38 linux/drivers/block/hd.c
Next file: linux/drivers/block/ide-tape.c
Previous file: linux/drivers/block/floppy.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Fri Jan 7 11:38:05 2000
- Orig file:
v2.3.37/linux/drivers/block/hd.c
- Orig date:
Tue Dec 14 01:27:23 1999
diff -u --recursive --new-file v2.3.37/linux/drivers/block/hd.c linux/drivers/block/hd.c
@@ -793,18 +793,10 @@
hardsect_size[MAJOR_NR] = hd_hardsectsizes;
}
-static struct file_operations hd_fops = {
- NULL, /* lseek - default */
- block_read, /* read - general block-dev read */
- block_write, /* write - general block-dev write */
- NULL, /* readdir - bad */
- NULL, /* poll */
- hd_ioctl, /* ioctl */
- NULL, /* mmap */
- hd_open, /* open */
- NULL, /* flush */
- hd_release, /* release */
- block_fsync /* fsync */
+static struct block_device_operations hd_fops = {
+ open: hd_open,
+ release: hd_release,
+ ioctl: hd_ioctl,
};
int __init hd_init(void)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)