# Ubuntu's ntfs-3g, rebuilt with our ntfsresize fix. ntfsresize can exit 0 # on a shrink and leave part of a file past the new end of the volume: the # relocation pass writes MFT records directly, and the inode cache still # holds them as they were (x86 notes/visparted.md, 2026-10-13; upstream # tuxera/ntfs-3g#225). The patch reads the inode afresh. Only ntfsresize # changes; the library and every other tool are Ubuntu's as built. cd /work apt-get update -q apt-get source -q ntfs-3g cd "$(find . -maxdepth 1 -mindepth 1 -type d -name 'ntfs-3g-*' | head -1)" base=$(dpkg-parsechangelog -S Version) want=$(cat /src/BASE_VERSION) if [ "$base" != "$want" ]; then echo "Ubuntu's ntfs-3g is $base; the patch was checked against $want." >&2 exit 1 fi apt-get build-dep -y -q ./ cp /src/ntfsresize-stale-inode-cache.patch debian/patches/ echo ntfsresize-stale-inode-cache.patch >> debian/patches/series quilt --quiltrc=- push -a quilt --quiltrc=- pop -a dch -v "${base}+pmagic1" -D resolute \ "ntfsresize: read an inode afresh before it updates the inode's runlist." DEB_BUILD_OPTIONS="nocheck parallel=$JOBS" dpkg-buildpackage -b -uc -us cp ../*.deb /out/