Unless I'm missing something, I don't think the fix here was fully
successful. In the case of a VMware VM running 14.04, hdparm spits out a
sense data error on stderr:

# hdparm -I /dev/sda1 1>/dev/null
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 
00 c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

So, fstrim-all also spits this out on stderr which then gets sent to
root's mail by cron.weekly:

# /sbin/fstrim-all 1>/dev/null
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 
00 c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

It looks like the intent was to have the stderr of hdparm piped to
/dev/null, but this isn't inside the backticks in the fstrim-all script.
To fix this, I think we just need the attached trivial patch.

This is mostly just an annoyance, but it would be nice to get fixed. If
it makes more sense to open this as a new bug, let me know.

** Patch added: "fstrim-all.patch"
   
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1293152/+attachment/4094509/+files/fstrim-all.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1293152

Title:
  fstrim-all weekly cron generate noise when hdparm isn't installed or
  on a VM; noisy in VMs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1293152/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to