Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-03-29 | Use getrpcbynumber() instead of getrpcbynumber_r() | Jan Kara | |
Quota is not multithreaded so it does not have to use thread-safe function variants. Furthermore some clone of libtirpc reportedly does not implement the reentrant function getrpcbynumber_r(). So just avoid using it. Reported-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz> | |||
2018-05-28 | Listen on a TCP socket | Steve Dickson | |
rpc.rquotad spins in libtirpc's rendezvous_request() on accepting TCP connections because the polled TCP socket is not listening: poll([{fd=4, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}, {fd=5, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}, {fd=6, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}, {fd=7, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 4, -1) = 2 ([{fd=5, revents=POLLHUP}, {fd=7, revents=POLLHUP}]) accept(5, 0x7ffe61698700, [128]) = -1 EINVAL (Invalid argument) accept(7, 0x7ffe61698700, [128]) = -1 EINVAL (Invalid argument) The polled descriptors are: rpc.rquot 21981 root 4u IPv4 80449159 0t0 UDP *:rquotad rpc.rquot 21981 root 5u sock 0,9 0t0 80449162 protocol: TCP rpc.rquot 21981 root 6u IPv6 80449165 0t0 UDP *:rquotad rpc.rquot 21981 root 7u sock 0,9 0t0 80449168 protocol: TCPv6 That results into a high CPU usage just after staring rpc.rquotad process. This patch adds a listen() call to svc_create_sock() routine which is needed with libtirpc version of svc_tli_create() as well as a needed IPv6 setsockopt(). Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz> | |||
2017-09-05 | rpc.rquotad: IPv6 support | Jan Kara | |
Add support for listening on IPv6 addresses as well. [Heavily modified from original code by Anders Blomdell] Signed-off-by: Jan Kara <jack@suse.cz> | |||
2017-09-05 | rpc: Factor out getting of port number | Jan Kara | |
Factor out getting of service port number so simplify transition to IPv6. 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) | |||
2004-04-05 | fixed bug in --port argument of rquotad | jkar8572 | |
added reference to setquota to manpages of other tools | |||
2003-12-02 | Implementing alternative port for rpc.rquotad to listen on. | jkar8572 | |
2002-11-28 | Optimized linking with svc_socket.o; fixed error reporting in svc_socket.c ↵ | jkar8572 | |
(Jan Kara) | |||
2002-11-21 | Made quota tools aware of /etc/services (unknown) | jkar8572 | |