User friendly names in warnquota

By default, warnquota sends out emails with the device name in the message, which probably doesn’t make much sense to most non-technical users.

Hi,

We noticed that you are in violation with the quotasystem
used on this system. We have found the following violations:

/dev/mapper/Ubuntu-home

                        Block limits               File limits
Filesystem           used    soft    hard  grace    used  soft  hard  grace
/dev/mapper/Ubuntu-home
               +- 1044404 1000000 1200000  6days    1781     0     0

You can improve this by using /etc/quotatab to assign a more meaningful name to the partition:

/dev/mapper/Ubuntu-home:user directory
/dev/mapper/Ubuntu-shared:shared area

Filed under debian

Tagged gotchasquotawarnquota

1 comment

Comments are closed. These are preserved from the original site.

I think it would be a start to report not the device but the mount point used for it. Of course, this gets interesting if a filesystem is mounted more than once. :)