kdave / btrfsmaintenance

Scripts for btrfs maintenance tasks like periodic scrub, balance, trim or defrag on selected mountpoints or directories.
GNU General Public License v2.0
902 stars 79 forks source link

Hard-coded path for fstrim breaks in ubuntu #6

Closed billimek closed 8 years ago

billimek commented 8 years ago

In btrfs-trim.sh there is a hard-coded path reference to /usr/sbin/fstrim. In at least ubuntu distributions fstrim is installed by default to /sbin.

Recommend removing hard-coded paths to commands.

kdave commented 8 years ago

Agreed, the scripts enforce PATH order and contents, no point to hardcode the path.