patch-2.3.99-pre1 linux/include/linux/fs.h

Next file: linux/include/linux/generic_serial.h
Previous file: linux/include/linux/fb.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/include/linux/fs.h linux/include/linux/fs.h
@@ -160,6 +160,8 @@
 #define BLKSSZGET  _IO(0x12,104)/* get block device sector size */
 #if 0
 #define BLKPG      _IO(0x12,105)/* See blkpg.h */
+#define BLKELVGET   _IO(0x12,106)/* elevator get */
+#define BLKELVSET   _IO(0x12,107)/* elevator set */
 /* This was here just to show that the number is taken -
    probably all these _IO(0x12,*) ioctls should be moved to blkpg.h. */
 #endif
@@ -758,6 +760,7 @@
 	if (!sb->s_op || !sb->s_op->statfs)
 		return -ENOSYS;
 	memset(buf, 0xff, sizeof(struct statfs));
+	buf->f_blocks = 0;	/* Darn GNU df... */
 	return sb->s_op->statfs(sb, buf);
 }
 

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