Re: Adding functions to libutil, part 1

2024-06-21 Thread Reinoud Zandijk
Hi Michael, On Fri, Jun 21, 2024 at 05:50:56AM -, Michael van Elst wrote: > rein...@netbsd.org (Reinoud Zandijk) writes: > > > int getdiskinfo(const char *s, int fd, const char *dt, struct disk_geom > > *geo, > > struct dkwedge_info *dkw); > > int getdisksize(const char *name, u_int *s

Re: Adding functions to libutil, part 1

2024-06-20 Thread Michael van Elst
rein...@netbsd.org (Reinoud Zandijk) writes: > int getdiskinfo(const char *s, int fd, const char *dt, struct disk_geom *geo, > struct dkwedge_info *dkw); > int getdisksize(const char *name, u_int *secsize, off_t *mediasize); There are kernel functions of the same name: int getdiskinfo(s

Adding functions to libutil, part 1

2024-06-20 Thread Reinoud Zandijk
Dear folks, i'd like to add the following files to libutil since they are referenced multiple times all reaching over to fsck while they are not fsck specific. sbin/fsck/partutil.h sbin/fsck/partutil.c which define the following functions: struct dkwedge_info; struct disk_geom; int g