Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6c31416 authored by ZVNexus's avatar ZVNexus Committed by Andreas Schneider
Browse files

Update to version 2.1.10

Change-Id: Ibdd0a0db23405d75efcded427c20fef3f4c7c43c
parent 5671af07
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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
+5 −1
Original line number Diff line number Diff line
@@ -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)
@@ -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;
+3 −0
Original line number Diff line number Diff line
@@ -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 */
+1 −1
Original line number Diff line number Diff line
@@ -22,4 +22,4 @@
/*  PURPOSE : sdFAT File Manager                                        */
/*                                                                      */
/************************************************************************/
#define SDFAT_VERSION	"2.1.8-lineage"
#define SDFAT_VERSION	"2.1.10-lineage"