File: msdos-fs.patch

package info (click to toggle)
linux-kernel-headers 2.5.999-test7-bk-17
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 28,268 kB
  • ctags: 214,024
  • sloc: ansic: 324,929; cpp: 783; makefile: 79; asm: 61; sh: 61
file content (30 lines) | stat: -rw-r--r-- 897 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Dosfstools uses this header.

--- include/linux/msdos_fs.h.orig	2003-10-15 11:14:03.000000000 -0400
+++ include/linux/msdos_fs.h	2003-11-23 16:03:14.000000000 -0500
@@ -4,9 +4,13 @@
 /*
  * The MS-DOS filesystem constants/structures
  */
-#include <linux/buffer_head.h>
 #include <linux/string.h>
 #include <asm/byteorder.h>
+#include <linux/types.h>
+
+#ifdef __KERNEL__
+#include <linux/buffer_head.h>
+#endif
 
 struct statfs;
 
@@ -175,8 +179,8 @@
 
 struct vfat_slot_info {
 	int long_slots;		       /* number of long slots in filename */
-	loff_t longname_offset;	       /* dir offset for longname start */
-	loff_t i_pos;		       /* on-disk position of directory entry */
+	__kernel_loff_t longname_offset;	       /* dir offset for longname start */
+	__kernel_loff_t i_pos;		       /* on-disk position of directory entry */
 };
 
 /* Convert attribute bits and a mask to the UNIX mode. */