100-ext2_fs_header.patch 729 B

123456789101112131415161718192021222324
  1. Index: linux-3.3.5/include/linux/ext2_fs.h
  2. ===================================================================
  3. --- linux-3.3.5.orig/include/linux/ext2_fs.h 2012-05-12 05:49:43.555033434 -0400
  4. +++ linux-3.3.5/include/linux/ext2_fs.h 2012-05-12 05:51:01.895033564 -0400
  5. @@ -209,7 +209,11 @@
  6. #define EXT2_OTHER_FLMASK (EXT2_NODUMP_FL | EXT2_NOATIME_FL)
  7. /* Mask out flags that are inappropriate for the given type of inode. */
  8. +#ifdef __KERNEL__
  9. static inline __u32 ext2_mask_flags(umode_t mode, __u32 flags)
  10. +#else
  11. +static inline __u32 ext2_mask_flags(unsigned short mode, __u32 flags)
  12. +#endif
  13. {
  14. if (S_ISDIR(mode))
  15. return flags;
  16. @@ -219,6 +223,7 @@
  17. return flags & EXT2_OTHER_FLMASK;
  18. }
  19. +
  20. /*
  21. * ioctl commands
  22. */