linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Namjae Jeon <namjae.jeon@samsung.com>
To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Cc: gregkh@linuxfoundation.org, valdis.kletnieks@vt.edu, hch@lst.de,
	sj1557.seo@samsung.com, Namjae Jeon <namjae.jeon@samsung.com>
Subject: [PATCH v7 00/13] add the latest exfat driver
Date: Fri, 13 Dec 2019 00:50:15 -0500	[thread overview]
Message-ID: <20191213055028.5574-1-namjae.jeon@samsung.com> (raw)
In-Reply-To: CGME20191213055336epcas1p267699d8a251e052da0ae8194cf5d1983@epcas1p2.samsung.com

This adds the latest Samsung exfat driver to fs/exfat. This is an
implementation of the Microsoft exFAT specification. Previous versions
of this shipped with millions of Android phones, and a random previous
snaphot has been merged in drivers/staging/.

Compared to the sdfat driver shipped on the phones the following changes
have been made:

 - the support for vfat has been removed as that is already supported
   by fs/fat
 - driver has been renamed to exfat
 - the code has been refactored and clean up to fully integrate into
   the upstream Linux version and follow the Linux coding style
 - metadata operations like create, lookup and readdir have been further
   optimized
 - various major and minor bugs have been fixed

We plan to treat this version as the future upstream for the code base
once merged, and all new features and bug fixes will go upstream first.

v7:
 - Add the helpers macros for bitmap and fat entry to improve readability.
 - Rename exfat_test_bitmap to exfat_find_free_bitmap.
 - Merge exfat_get_num_entries into exfat_calc_num_entries.
 - Add EXFAT_DATA_CLUSTERS and EXFAT_RESERVED_CLUSTERS macro.
 - Add the macros for EXFAT BIOS block(JUMP_BOOT_LEN, OEM_NAME_LEN,
   MUST_BE_ZERO_LEN).
 - Add the macros for EXFAT entry type (IS_EXFAT_CRITICAL_PRI,
   IS_EXFAT_BENIGN_PRI, IS_EXFAT_CRITICAL_SEC).
 - Add EXFAT_FILE_NAME_LEN macro.
 - Change the data type of is_dir with bool in __exfat_write_inode().
 - Change the data type of sync with bool in exfat_set_vol_flags().
 - Merge __exfat_set_vol_flags into exfat_set_vol_flags.
 - Fix wrong statfs-f_namelen.

v6:
 - Fix always false comparison due to limited range of allow_utime's data
   type.
 - Move bh into loop in exfat_find_dir_entry().
 - Move entry_uniname and unichar variables into
   an if "entry_type == TYPE_EXTEND" branch.

v5:
 - Remove a blank line between the message and the error code in
   exfat_load_upcase_table.
 - Move brelse to the end of the while loop and rename release_bh label
   to free_table in exfat_load_upcase_table.
 - Move an error code assignment after a failed function call.
 - Rename labels and directly return instead of goto.
 - Improve the exception handling in exfat_get_dentry_set().
 - Remove ->d_time leftover.
 - fix boolreturn.cocci warnings.

v4:
 - Declare ALLOC_FAT_CHAIN and ALLOC_NO_FAT_CHAIN macros.
 - Rename labels with proper name.
 - Remove blank lines.
 - Remove pointer check for bh.
 - Move ep into loop in exfat_load_bitmap().
 - Replace READ/WRITE_ONCE() with test_and_clear_bit() and set_bit().
 - Change exfat_allow_set_time return type with bool.

v3:
 - fix wrong sbi->s_dirt set.

v2:
 - Check the bitmap count up to the total clusters.
 - Rename goto labels in several places.
 - Change time mode type with enumeration.
 - Directly return error instead of goto at first error check.
 - Combine seq_printf calls into a single one.

Namjae Jeon (13):
  exfat: add in-memory and on-disk structures and headers
  exfat: add super block operations
  exfat: add inode operations
  exfat: add directory operations
  exfat: add file operations
  exfat: add exfat entry operations
  exfat: add bitmap operations
  exfat: add exfat cache
  exfat: add misc operations
  exfat: add nls operations
  exfat: add Kconfig and Makefile
  exfat: add exfat in fs/Kconfig and fs/Makefile
  MAINTAINERS: add exfat filesystem

 MAINTAINERS          |    7 +
 fs/Kconfig           |    3 +-
 fs/Makefile          |    1 +
 fs/exfat/Kconfig     |   21 +
 fs/exfat/Makefile    |    8 +
 fs/exfat/balloc.c    |  282 ++++++++
 fs/exfat/cache.c     |  325 ++++++++++
 fs/exfat/dir.c       | 1295 +++++++++++++++++++++++++++++++++++++
 fs/exfat/exfat_fs.h  |  568 ++++++++++++++++
 fs/exfat/exfat_raw.h |  202 ++++++
 fs/exfat/fatent.c    |  472 ++++++++++++++
 fs/exfat/file.c      |  343 ++++++++++
 fs/exfat/inode.c     |  694 ++++++++++++++++++++
 fs/exfat/misc.c      |  240 +++++++
 fs/exfat/namei.c     | 1459 ++++++++++++++++++++++++++++++++++++++++++
 fs/exfat/nls.c       |  808 +++++++++++++++++++++++
 fs/exfat/super.c     |  732 +++++++++++++++++++++
 17 files changed, 7459 insertions(+), 1 deletion(-)
 create mode 100644 fs/exfat/Kconfig
 create mode 100644 fs/exfat/Makefile
 create mode 100644 fs/exfat/balloc.c
 create mode 100644 fs/exfat/cache.c
 create mode 100644 fs/exfat/dir.c
 create mode 100644 fs/exfat/exfat_fs.h
 create mode 100644 fs/exfat/exfat_raw.h
 create mode 100644 fs/exfat/fatent.c
 create mode 100644 fs/exfat/file.c
 create mode 100644 fs/exfat/inode.c
 create mode 100644 fs/exfat/misc.c
 create mode 100644 fs/exfat/namei.c
 create mode 100644 fs/exfat/nls.c
 create mode 100644 fs/exfat/super.c

-- 
2.17.1


       reply	other threads:[~2019-12-13  5:54 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20191213055336epcas1p267699d8a251e052da0ae8194cf5d1983@epcas1p2.samsung.com>
2019-12-13  5:50 ` Namjae Jeon [this message]
     [not found]   ` <CGME20191213055337epcas1p24968ee98f2b2db80439c311a59b5d95b@epcas1p2.samsung.com>
2019-12-13  5:50     ` [PATCH v7 01/13] exfat: add in-memory and on-disk structures and headers Namjae Jeon
2019-12-16 13:50       ` Markus Elfring
2019-12-17  0:02         ` Namjae Jeon
2019-12-17  7:36           ` Markus Elfring
2019-12-17  7:56             ` Namjae Jeon
2019-12-17 13:10           ` Enrico Weigelt, metux IT consult
2019-12-18  0:09             ` 전남재/S/W Platform Lab(VD)/Staff Engineer/삼성전자
2019-12-18  9:33               ` Maurizio Lombardi
2019-12-19 11:20                 ` Namjae Jeon
2019-12-16 15:26       ` Markus Elfring
     [not found]   ` <CGME20191213055338epcas1p12ac00549b7d5c92c16a7ff9afd814f94@epcas1p1.samsung.com>
2019-12-13  5:50     ` [PATCH v7 02/13] exfat: add super block operations Namjae Jeon
     [not found]   ` <CGME20191213055339epcas1p2ff141746e3bc076293c7633252387feb@epcas1p2.samsung.com>
2019-12-13  5:50     ` [PATCH v7 03/13] exfat: add inode operations Namjae Jeon
     [not found]   ` <CGME20191213055339epcas1p4c1c4b1646e2ec24f6a48c2f3010208a0@epcas1p4.samsung.com>
2019-12-13  5:50     ` [PATCH v7 04/13] exfat: add directory operations Namjae Jeon
     [not found]   ` <CGME20191213055340epcas1p424dbbfbabc709d2087058573463367a3@epcas1p4.samsung.com>
2019-12-13  5:50     ` [PATCH v7 05/13] exfat: add file operations Namjae Jeon
     [not found]   ` <CGME20191213055341epcas1p4340dae4923a8e512326f7be75a4426e1@epcas1p4.samsung.com>
2019-12-13  5:50     ` [PATCH v7 06/13] exfat: add exfat entry operations Namjae Jeon
     [not found]   ` <CGME20191213055341epcas1p291e09a7a59f59bfd6802e18987bec9e4@epcas1p2.samsung.com>
2019-12-13  5:50     ` [PATCH v7 07/13] exfat: add bitmap operations Namjae Jeon
     [not found]   ` <CGME20191213055342epcas1p2e9f2971a4a7d392173e885b446b3e2c3@epcas1p2.samsung.com>
2019-12-13  5:50     ` [PATCH v7 08/13] exfat: add exfat cache Namjae Jeon
     [not found]   ` <CGME20191213055342epcas1p384b8e47ce6b3689540b55202919165dc@epcas1p3.samsung.com>
2019-12-13  5:50     ` [PATCH v7 09/13] exfat: add misc operations Namjae Jeon
     [not found]   ` <CGME20191213055343epcas1p4cedc37fb1bd39d8b7ce5937aebbc30aa@epcas1p4.samsung.com>
2019-12-13  5:50     ` [PATCH v7 10/13] exfat: add nls operations Namjae Jeon
     [not found]   ` <CGME20191213055344epcas1p4445bead283b45a45eab868907774d529@epcas1p4.samsung.com>
2019-12-13  5:50     ` [PATCH v7 11/13] exfat: add Kconfig and Makefile Namjae Jeon
     [not found]   ` <CGME20191213055344epcas1p37b9d8fc36fce255eedc99a335feca564@epcas1p3.samsung.com>
2019-12-13  5:50     ` [PATCH v7 12/13] exfat: add exfat in fs/Kconfig and fs/Makefile Namjae Jeon
     [not found]   ` <CGME20191213055345epcas1p10a858f9ceb26f217e00183669947e500@epcas1p1.samsung.com>
2019-12-13  5:50     ` [PATCH v7 13/13] MAINTAINERS: add exfat filesystem Namjae Jeon
2019-12-18  7:30   ` [PATCH v7 00/13] add the latest exfat driver Markus Elfring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191213055028.5574-1-namjae.jeon@samsung.com \
    --to=namjae.jeon@samsung.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hch@lst.de \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sj1557.seo@samsung.com \
    --cc=valdis.kletnieks@vt.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).