aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/nfsdumpstate/nfsdumpstate.c
Commit message (Collapse)AuthorAgeFilesLines
* usr.sbin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* align nfsdumpstate column outputCaleb St. John2021-03-241-0/+3
| | | | | | | | | | | | | | | | | | | There are scenarios where an NFS client will mount an NFSv4 export without specifying a callback address. When running nfsdumpstate under this circumstance, the column output is shifted incorrectly which places the "ClientID" value underneath the "Clientaddr" column. This diff is a small cosmetic change that prints a blank in the "Clientaddr" column and ensures the data for the columns are aligned appropriately. Submitted by: Caleb St. John Reviewed by: sef (previous version) MFC after: 3 days Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D18958
* Add #ifdef INET6 around declaration of nbuf.Rick Macklem2019-04-281-0/+4
| | | | | | | | | | | | It was reported that without #ifdef INET6 around the declaration of "nbuf", a build would report an unused variable. For some reason, I didn't see that warning when I did a build, but it seems reasonable to add these #ifdef INET6's. Submitted by: dmitryluhtionov@gmail.com MFC after: 1 week Notes: svn path=/head/; revision=346856
* Add support to nfsdumpstate for printing of INET6 addresses for locks.Rick Macklem2019-04-251-5/+21
| | | | | | | | | | | | r346190 added support for printing of INET6 addresses for the "-o" option (all opens) but missed adding support for INET6 addresses for the "-l" option. This patch adds that support. PR: 223036 MFC after: 1 week Notes: svn path=/head/; revision=346709
* Fix nfsdumpstate(8) so that it can print out INET6 callback addresses.Rick Macklem2019-04-131-3/+18
| | | | | | | | | | | | | The patch adds support for printing of INET6 callback addresses. It also adds the #ifdef INET, INET6 as requested by bz@. PR: 223036 Reviewed by: bz, rgrimes MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D19839 Notes: svn path=/head/; revision=346190
* Fix handling of the "-l" argument for nfsdumpstate(8).Rick Macklem2010-07-201-1/+1
| | | | | | | | Submitted by: zack.kirsch at isilon.com MFC after: 2 weeks Notes: svn path=/head/; revision=210272
* Code cleanup for nfs4 utilities:Xin LI2009-05-291-1/+1
| | | | | | | | | | | | | | | - Mark internal routines as static; - Eliminate unused parameters where possible, mark __unused for others; - Remove unused variables; - Use %jd for int64_t values in printf(); - Add appropriate %d for printf to match its parameter; - Rename a variable to resolve conflict with revoke(2); Reviewed by: rmacklem Tested with: make universe (bugs are mine) Notes: svn path=/head/; revision=193070
* Add two new utilities and two new daemons to /usr/src/usr.sbin thatRick Macklem2009-05-261-0/+280
are specifically used by the experimental nfsv4 subsystem. nfscbd - The NFSv4 client callback daemon. nfsuserd - The NFSv4 daemon that maps between user and group name and their corresponding uid/gid numbers. nfsdumpstate - A utility that dumps out the NFSv4 Open/Lock state. nfsrevoke - Administratively revokes an NFSv4 client, releasing all NFSv4 Open/Lock state it holds on the server. Approved by: kib (mentor) Notes: svn path=/head/; revision=192811