Loading misc.c +7 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,13 @@ #define ST_LOG(fmt, ...) #endif /************************************************************************* * FUNCTIONS WHICH HAS KERNEL VERSION DEPENDENCY *************************************************************************/ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) #define CURRENT_TIME_SEC timespec_trunc(current_kernel_time(), NSEC_PER_SEC) #endif /* * sdfat_fs_error reports a file system problem that might indicate fa data * corruption/inconsistency. Depending on 'errors' mount option the Loading sdfat.c +5 −1 Original line number Diff line number Diff line Loading @@ -147,6 +147,10 @@ static inline void bio_set_dev(struct bio *bio, struct block_device *bdev) } #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) #define CURRENT_TIME_SEC timespec_trunc(current_kernel_time(), NSEC_PER_SEC) #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) static int sdfat_getattr(const struct path *path, struct kstat *stat, u32 request_mask, unsigned int query_flags) Loading Loading @@ -3711,7 +3715,7 @@ static int sdfat_check_writable(struct super_block *sb) if (fsapi_check_bdi_valid(sb)) return -EIO; if (SDFAT_IS_SB_RDONLY(sb)) if (sb->s_flags & MS_RDONLY) return -EROFS; return 0; Loading sdfat_fs.h +3 −0 Original line number Diff line number Diff line Loading @@ -33,7 +33,10 @@ #define EXFAT_SUPER_MAGIC (0x2011BAB0UL) #endif /* EXFAT_SUPER_MAGIC */ #ifndef SDFAT_SUPER_MAGIC #define SDFAT_SUPER_MAGIC (0x5EC5DFA4UL) #endif /* SDFAT_SUPER_MAGIC */ #define SDFAT_ROOT_INO 1 /* FAT types */ Loading version.h +1 −1 Original line number Diff line number Diff line Loading @@ -22,4 +22,4 @@ /* PURPOSE : sdFAT File Manager */ /* */ /************************************************************************/ #define SDFAT_VERSION "2.1.8-lineage" #define SDFAT_VERSION "2.1.10-lineage" Loading
misc.c +7 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,13 @@ #define ST_LOG(fmt, ...) #endif /************************************************************************* * FUNCTIONS WHICH HAS KERNEL VERSION DEPENDENCY *************************************************************************/ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) #define CURRENT_TIME_SEC timespec_trunc(current_kernel_time(), NSEC_PER_SEC) #endif /* * sdfat_fs_error reports a file system problem that might indicate fa data * corruption/inconsistency. Depending on 'errors' mount option the Loading
sdfat.c +5 −1 Original line number Diff line number Diff line Loading @@ -147,6 +147,10 @@ static inline void bio_set_dev(struct bio *bio, struct block_device *bdev) } #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) #define CURRENT_TIME_SEC timespec_trunc(current_kernel_time(), NSEC_PER_SEC) #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) static int sdfat_getattr(const struct path *path, struct kstat *stat, u32 request_mask, unsigned int query_flags) Loading Loading @@ -3711,7 +3715,7 @@ static int sdfat_check_writable(struct super_block *sb) if (fsapi_check_bdi_valid(sb)) return -EIO; if (SDFAT_IS_SB_RDONLY(sb)) if (sb->s_flags & MS_RDONLY) return -EROFS; return 0; Loading
sdfat_fs.h +3 −0 Original line number Diff line number Diff line Loading @@ -33,7 +33,10 @@ #define EXFAT_SUPER_MAGIC (0x2011BAB0UL) #endif /* EXFAT_SUPER_MAGIC */ #ifndef SDFAT_SUPER_MAGIC #define SDFAT_SUPER_MAGIC (0x5EC5DFA4UL) #endif /* SDFAT_SUPER_MAGIC */ #define SDFAT_ROOT_INO 1 /* FAT types */ Loading
version.h +1 −1 Original line number Diff line number Diff line Loading @@ -22,4 +22,4 @@ /* PURPOSE : sdFAT File Manager */ /* */ /************************************************************************/ #define SDFAT_VERSION "2.1.8-lineage" #define SDFAT_VERSION "2.1.10-lineage"