freebsd-src/lib/libgeom
Mark Johnston d06fe346ec libgeom: Avoid fixed remappings of the devstat device
libgeom maintains a quasi-private mapping of /dev/devstat, which might
grow over time if new devices appear.  When the mapping needs to be
expanded, the old mapping is passed as a hint, but this appears to be
unnecessary.

Simplify and improve things a bit:
- stop passing a hint when remapping,
- don't creat a mapping in geom_stats_open(), as geom_stats_resync() will
  create it for us,
- check for errors from munmap().

Reviewed by:	imp, asomers
Tested by:	asomers
MFC after:	2 weeks
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D46294
2024-08-19 16:02:59 +00:00
..
geom_ctl.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
geom_getxml.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
geom_stats.c libgeom: Avoid fixed remappings of the devstat device 2024-08-19 16:02:59 +00:00
geom_util.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
geom_xml2tree.c libgeom: Consistently use item count as the first argument to calloc 2024-07-19 13:06:03 -04:00
libgeom.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
libgeom.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00