exfatprogs (1.2.9-1+deb13u1) UNRELEASED; urgency=medium
* Add trixie branch information to gbp.conf and Vcs-Git.
+ * Add debian/patches/windows-compat-use-512-sector-size.patch
+ for Windows compatibility. Windows fails to access devices
+ with a 4KB sector size which use a 512Byte sector size
+ emulation. Cherry-Pick the fix from exfatprogs 1.3.0
+ which uses a 512Byte sector size by default on those devices,
+ despite the performance penalty. (Closes: #1120932)
-- Sven Hoexter <hoexter@debian.org> Tue, 18 Nov 2025 14:28:07 +0100
--- /dev/null
+Origin: https://github.com/exfatprogs/exfatprogs/commit/d4f77ae41ce178c04b8e3326178554182ca94bd5
+Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1120932
+Description: Windows 11 seems to be unable to deal with a 4KB
+sector size for devices with a 512Byte sector size emulation.
+This patch was released with exfatprogs 1.3.0.
+Index: exfatprogs/lib/libexfat.c
+===================================================================
+--- exfatprogs.orig/lib/libexfat.c
++++ exfatprogs/lib/libexfat.c
+@@ -189,8 +189,6 @@ int exfat_get_blk_dev_info(struct exfat_
+
+ if (ui->sector_size)
+ bd->sector_size = ui->sector_size;
+- else if (ioctl(fd, BLKPBSZGET, &bd->sector_size) >= 0)
+- ;
+ else if (ioctl(fd, BLKSSZGET, &bd->sector_size) < 0)
+ bd->sector_size = DEFAULT_SECTOR_SIZE;
+ bd->sector_size_bits = sector_size_bits(bd->sector_size);