#! /usr/bin/patch -p0
# $Header: /global/src/etc/cl-manage-scripts/patches/RCS/P-fstrim-all-2,v 1.1 2025/03/21 15:19:26 mas90 Exp $
# patch to log fstrim info to /var/log
# patch-file matches = KINGSTON
# patch-file distmatches = Ubuntu|Debian
# Process using /usr/bin/cl-patch-file unless matching the above
--- /sbin/fstrim-all	2015-08-15 07:55:49.923610050 +0100
+++ /sbin/fstrim-all	2015-08-16 22:29:12.857691654 +0100
@@ -67,6 +67,7 @@
                ! contains "$HDPARM" "SAMSUNG" && \
                ! contains "$HDPARM" "OCZ" && \
                ! contains "$HDPARM" "SanDisk" && \
+               ! contains "$HDPARM" "KINGSTON SV" && \
                ! contains "$HDPARM" "Patriot"; then
                 #echo "device $DEV is not a drive that is known-safe for trimming"
                 continue
@@ -84,4 +85,4 @@
         fstrim -v $MOUNT
     fi
 done < /proc/mounts
-date; echo) > /var/log/fstrim-all.log
+date; echo) >> /var/log/cl-fstrim-all.log
