]> git.sven.stormbind.net Git - sven/exfatprogs.git/commitdiff
New upstream version 1.2.8 upstream upstream/1.2.8
authorSven Hoexter <sven@stormbind.net>
Tue, 4 Mar 2025 14:58:40 +0000 (15:58 +0100)
committerSven Hoexter <sven@stormbind.net>
Tue, 4 Mar 2025 14:58:40 +0000 (15:58 +0100)
NEWS
configure
dump/dump.c
fsck/fsck.c
include/version.h
mkfs/mkfs.c
tests/test_fsck.sh

diff --git a/NEWS b/NEWS
index 87a44d32ea8a89ca26083400ca678e89091dbeb6..9a24b9dca1efe0a252de964badd6172fe50372e8 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,15 @@
+exfatprogs 1.2.8 - released 2025-03-04
+======================================
+
+BUG FIXES :
+ * dump.exfat: fix an incorrect output of an entry
+   position in 32-bit system.
+ * mkfs.exfat: fill an oem sector with zero instead
+   of one.
+ * exfatprogs: fix compilation on musl based systems
+   due to loff_t type. And update the Github action
+   to validate builds on the system.
+
 exfatprogs 1.2.7 - released 2025-02-03
 ======================================
 
index ce4392fbc5c3c67f078b2e8b10edcfaa5c274805..0f74903b6a9c5a09647f39920f7221b5213b62f9 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.71 for exfatprogs 1.2.7.
+# Generated by GNU Autoconf 2.71 for exfatprogs 1.2.8.
 #
 # Report bugs to <linkinjeon@kernel.org>.
 #
@@ -621,8 +621,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='exfatprogs'
 PACKAGE_TARNAME='exfatprogs'
-PACKAGE_VERSION='1.2.7'
-PACKAGE_STRING='exfatprogs 1.2.7'
+PACKAGE_VERSION='1.2.8'
+PACKAGE_STRING='exfatprogs 1.2.8'
 PACKAGE_BUGREPORT='linkinjeon@kernel.org'
 PACKAGE_URL='https://github.com/exfatprogs/exfatprogs'
 
@@ -1348,7 +1348,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures exfatprogs 1.2.7 to adapt to many kinds of systems.
+\`configure' configures exfatprogs 1.2.8 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1419,7 +1419,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of exfatprogs 1.2.7:";;
+     short | recursive ) echo "Configuration of exfatprogs 1.2.8:";;
    esac
   cat <<\_ACEOF
 
@@ -1531,7 +1531,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-exfatprogs configure 1.2.7
+exfatprogs configure 1.2.8
 generated by GNU Autoconf 2.71
 
 Copyright (C) 2021 Free Software Foundation, Inc.
@@ -1792,7 +1792,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by exfatprogs $as_me 1.2.7, which was
+It was created by exfatprogs $as_me 1.2.8, which was
 generated by GNU Autoconf 2.71.  Invocation command line was
 
   $ $0$ac_configure_args_raw
@@ -3072,7 +3072,7 @@ fi
 
 # Define the identity of the package.
  PACKAGE='exfatprogs'
- VERSION='1.2.7'
+ VERSION='1.2.8'
 
 
 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@@ -13558,7 +13558,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by exfatprogs $as_me 1.2.7, which was
+This file was extended by exfatprogs $as_me 1.2.8, which was
 generated by GNU Autoconf 2.71.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -13627,7 +13627,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config='$ac_cs_config_escaped'
 ac_cs_version="\\
-exfatprogs config.status 1.2.7
+exfatprogs config.status 1.2.8
 configured by $0, generated by GNU Autoconf 2.71,
   with options \\"\$ac_cs_config\\"
 
index 0ac1fd3dec236d5d4419d28a59a803a9185e9138..6fa1636da2c2d0ffef6aadfae49b68ecf82d517d 100644 (file)
@@ -167,7 +167,7 @@ static int exfat_show_ondisk_all_info(struct exfat_blk_dev *bd)
                goto free_exfat;
 
        if (ed.type == EXFAT_VOLUME) {
-               exfat_info("Volume label entry position: \t\t0x%lx\n", off);
+               exfat_info("Volume label entry position: \t\t0x%llx\n", (unsigned long long)off);
                exfat_info("Volume label character count: \t\t%u\n", ed.vol_char_cnt);
                volume_label = exfat_conv_volume_label(&ed);
                if (!volume_label)
@@ -182,7 +182,7 @@ static int exfat_show_ondisk_all_info(struct exfat_blk_dev *bd)
                goto free_exfat;
 
        if (ed.type == EXFAT_UPCASE) {
-               exfat_info("Upcase table entry position: \t\t0x%lx\n", off);
+               exfat_info("Upcase table entry position: \t\t0x%llx\n", (unsigned long long)off);
                exfat_info("Upcase table start cluster: \t\t%x\n",
                                le32_to_cpu(ed.upcase_start_clu));
                exfat_info("Upcase table size: \t\t\t%" PRIu64 "\n",
@@ -197,7 +197,7 @@ static int exfat_show_ondisk_all_info(struct exfat_blk_dev *bd)
                bitmap_len = le64_to_cpu(ed.bitmap_size);
                bitmap_clu = le32_to_cpu(ed.bitmap_start_clu);
 
-               exfat_info("Bitmap entry position: \t\t\t0x%lx\n", off);
+               exfat_info("Bitmap entry position: \t\t\t0x%llx\n", (unsigned long long)off);
                exfat_info("Bitmap start cluster: \t\t\t%x\n", bitmap_clu);
                exfat_info("Bitmap size: \t\t\t\t%llu\n", bitmap_len);
 
index 48814981e49866d7c9b1701ad4c8d0189d16206c..2fd7194dfedc1b95eecffca93a5cddc5173b917f 100644 (file)
@@ -1083,7 +1083,7 @@ out:
 }
 
 static int exfat_repair_upcase_table(struct exfat *exfat,
-               struct exfat_dentry *dentry, loff_t dentry_off)
+               struct exfat_dentry *dentry, off_t dentry_off)
 {
        clus_t clu;
        int ret;
@@ -1175,7 +1175,7 @@ static int read_upcase_table(struct exfat_fsck *fsck)
        ssize_t size;
        __le32 checksum;
        clus_t start_clu;
-       loff_t dentry_off;
+       off_t dentry_off;
 
        retval = exfat_lookup_dentry_set(exfat, exfat->root, &filter);
        if (retval == EOF) {
index 9fb13fbae1990cac63d30da99b2201d149be955a..846ae59f2367ef3ffa8f1b983f71ab36a39df2c0 100644 (file)
@@ -5,6 +5,6 @@
 
 #ifndef _VERSION_H
 
-#define EXFAT_PROGS_VERSION "1.2.7"
+#define EXFAT_PROGS_VERSION "1.2.8"
 
 #endif /* !_VERSION_H */
index fc0cd201d4d006975adafda110b2e2e460f71458..315b8ac2c73f0c048bdae98be3c5ce4d88fd1dd8 100644 (file)
@@ -177,14 +177,13 @@ static int exfat_write_oem_sector(struct exfat_blk_dev *bd,
        int ret = 0;
        unsigned int sec_idx = OEM_SEC_IDX;
 
-       oem = malloc(bd->sector_size);
+       oem = calloc(1, bd->sector_size);
        if (!oem)
                return -1;
 
        if (is_backup)
                sec_idx += BACKUP_BOOT_SEC_IDX;
 
-       memset(oem, 0xFF, bd->sector_size);
        ret = exfat_write_sector(bd, oem, sec_idx);
        if (ret) {
                exfat_err("oem sector write failed\n");
@@ -195,8 +194,7 @@ static int exfat_write_oem_sector(struct exfat_blk_dev *bd,
        boot_calc_checksum((unsigned char *)oem, bd->sector_size, false,
                checksum);
 
-       /* Zero out reserved sector */
-       memset(oem, 0, bd->sector_size);
+       /* Reuse zeroed out oem sector for reserved sector */
        ret = exfat_write_sector(bd, oem, sec_idx + 1);
        if (ret) {
                exfat_err("reserved sector write failed\n");
@@ -528,7 +526,6 @@ static int exfat_zero_out_disk(struct exfat_blk_dev *bd,
                struct exfat_user_input *ui)
 {
        int ret;
-       unsigned long long total_written = 0;
        unsigned long long size;
 
        if (ui->quick)
@@ -543,7 +540,7 @@ static int exfat_zero_out_disk(struct exfat_blk_dev *bd,
        }
 
        exfat_debug("zero out written size : %llu, disk size : %llu\n",
-               total_written, bd->size);
+               size, bd->size);
        return 0;
 }
 
index 5a13e1a213d2a2c5b5977b7378ea3758210e9612..b911fc5221740315aee7c6edec45a1c2c7397281 100755 (executable)
@@ -19,7 +19,7 @@ cleanup() {
 }
 
 if [ $# -eq 0 ]; then
-       TESTCASE_LIST=($(find . -name "${IMAGE_FILE}.tar.xz" | xargs dirname))
+       TESTCASE_LIST=($(find . -name "${IMAGE_FILE}.tar.xz" -exec dirname {} \;))
        TESTCASE_LIST+=($(find . -name "[[:digit:]]*.sh" | sort))
 else
        TESTCASE_LIST=($@)