aboutsummaryrefslogtreecommitdiff
path: root/stand/libsa/nfs.c
Commit message (Collapse)AuthorAgeFilesLines
* stand: 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/
* stand: Use c99 structure initialization for nfs_fsopsWarner Losh2022-07-241-8/+8
| | | | Sponsored by: Netflix
* loader: net_open() should not replace f->f_devdataToomas Soome2021-10-191-1/+3
| | | | | | | | | | | | | | | net_open() does replace f_devdata with pointer to netdev_sock, this will cause memory leak when device is closed, but also does alter the devopen() logic. We should store &netdev_sock to dev->d_opendata instead, this would preserve and follow the devopen() logic. Fixes network boot on aarch64 (tested by bz). Reviewed-by: imp MFC After: 2 weeks Differential Revision: https://reviews.freebsd.org/D32227
* Logging improvements to loader::nfsRavi Pokala2019-11-131-3/+4
| | | | | | | | | | | | | Include the server IP address when logging nfs_open(), add a few missing "\n"s, and correct a typo. Reviewed by: kevans MFC after: 2 weeks Sponsored by: Panasas Differential Revision: https://reviews.freebsd.org/D22346 Notes: svn path=/head/; revision=354673
* libsa: assignment to char * from u_char *Toomas Soome2018-08-011-1/+1
| | | | | | | Cast to char * instead of u_char * Notes: svn path=/head/; revision=337039
* Initialize variables we later free so they aren't usedWarner Losh2018-06-131-5/+4
| | | | | | | | | | uninitialized in the error path. Remove unused variables. Sponsored by: Netflix Notes: svn path=/head/; revision=335071
* libsa: Const-ify buffer argument of write(2) analogConrad Meyer2018-02-231-11/+1
| | | | | | | | | | Reported by: kevans Reviewed by: delphij, eadler, imp, kevans Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D14482 Notes: svn path=/head/; revision=329879
* Move sys/boot to stand. Fix all references to new locationWarner Losh2017-11-141-0/+860
Sponsored by: Netflix Notes: svn path=/head/; revision=325834