summaryrefslogtreecommitdiff
path: root/quota_nld.c
AgeCommit message (Collapse)Author
2015-12-16quota_nld: multicast project quota warnings via dbusMasatake YAMATO
Quota subsystem in kernel introduced project quota. This patch improves the userspace side. This patch prevents quota_nld writing warnings to a console when receiving project quota warnings from kernel because there is no such concept, "console associated with a project id". Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-11-18quota_nld: Fix compilation warningJan Kara
Fix compilation warning about missing stat(3) prototype. Signed-off-by: Jan Kara <jack@suse.cz>
2013-11-18quota_nld: Fix usage of netlink multicast groupsJan Kara
quota_nld has used VFS_DQUOT netlink family id as an id of a multicast group to listen to. That is wrong - instead proper multicast group id should be looked up. To do that we need a support for this functionality in libnl so convert quota_nld to use libnl-3.0 and properly lookup multicast group id. Signed-off-by: Jan Kara <jack@suse.cz>
2012-02-29Store PID of quota_nldPetr Písař
If quota_nld is run as daemon, daemon's PID will be stored into /var/run/${PROGNAME}.pid file and it will be deleted on receiving SIGTERM just before program termination. PID file is used by init scripts to find and kill forked daemon. Signed-off-by: Jan Kara <jack@suse.cz>
2011-08-17Do not report missing utmp record to syslogPetr Písař
If no utmp record can be found there is obviously nobody to read error message about missing TTY in sytem log in real time. Moreover the log is usually illegible for normal user. So it's pointless to log this fact there for user's sake. warnquota can be used instead. Signed-off-by: Jan Kara <jack@suse.cz>
2011-05-16Make global symbols static as possiblePetr Pisar
There are some calls (e.g. getpwnam(3)) that can lead to dlopening other libraries that could jump to symbol with name clashing to one of global quota symbols. (e.g. Name server switch plug-in nss_db calls dirname(3) that's already defined in edquota.c and tht can cause segmentation fault.) Although it's not possible to solve all these problems, making as much as possible global objects and functions static is the best thing we can do to avoid name space polution. Signed-off-by: Jan Kara <jack@suse.cz>
2010-01-05* Rewritten configuration script to create config.h (Jan Kara)jkar8572
* Use /proc/mounts for mountpoint scanning (Jan Kara) * Removed use of reserved identifiers (Jan Kara)
2010-01-05* Improved manpage of quota_nld (Eddie)jkar8572
* Fixed long option handling of quota_nld (Jan Kara)
2008-07-12* implemented writing of messages that user got below hard/soft limits to ↵jkar8572
quota_nld (Jan Kara)
2008-04-21Format string fixes (Ladislav Michnovic)jkar8572
2008-04-14Added limits.h include to quota_nld.cjkar8572
2008-01-17Fixed netlink command detection.jkar8572
2008-01-17Ported quota_nld to libnl 1.1 (Jan Kara)jkar8572
2007-09-18Quotaon should work only on local mount points (Jan Kara)jkar8572
2007-06-18Updated changelog.jkar8572
Added manpage for quota_nld.
2007-06-18Implemented quota netlink daemon.jkar8572