--- ntfs-3g.SlackBuild.orig 2026-10-13 12:00:06.045416207 -0500 +++ ntfs-3g.SlackBuild 2026-10-13 12:00:06.050728962 -0500 @@ -31,9 +31,10 @@ PKGNAM=ntfs-3g SRCNAM=ntfs-3g VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} +TAG=${TAG:-_pmagic} -NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} +NUMJOBS=${NUMJOBS:-" -j12 "} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -73,6 +74,13 @@ rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.?z || exit 1 cd $SRCNAM-$VERSION || exit 1 + +# ntfsresize: read an inode afresh before a delayed runlist update. The +# inode cache kept the copy the consistency check read, and the update +# wrote its old extents back over relocations made in place: a shrink +# then left part of a file beyond the new end of the volume, exit 0 +# (Parted Magic VisParted bench, 2026-10-13). +patch -p1 --verbose < $CWD/ntfsresize-stale-inode-cache.patch || exit 1 chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -97,12 +105,14 @@ --sbindir=/sbin \ --docdir=/usr/doc/$PKGNAM-$VERSION \ --with-fuse=internal \ + --enable-extras \ + --without-hd \ --disable-ldconfig \ --enable-static=no \ --build=${ARCH}-slackware-linux \ || exit 1 -make $NUMJOBS || exit 1 +make -j12 || exit 1 # Installation bug kludge: mkdir -p $PKG/lib${LIBDIRSUFFIX} @@ -116,6 +126,9 @@ # ceased to work for non-root users unless it is setuid root. If anyone has # any better ideas, I'd like to hear them. chmod 4711 $PKG/bin/ntfs-3g +# --enable-extras also installs an ntfsck; the image ships ntfsprogs-plus's ntfsck +# in /usr/sbin already, so this one is left out rather than shipping two. +rm -f $PKG/bin/ntfsck $PKG/usr/man/man8/ntfsck.8* # Create a mount.ntfs -> mount.ntfs-3g symlink. # This causes ntfs-3g to always be used when mounting NTFS filesystems. @@ -159,4 +172,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.txz