tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Adding functions to libutil, part 1
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 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);
getdiskinfo() returns as might be expected the disc geometry and wedgeinfo (if
available). getdisksize() returns the sector size and the total media size.
Are there any objections to this inclusion in libutil (with their manpages of
course) ?
With regards,
Reinoud
partutil.h is included in
sbin/fsck/partutil.c
sbin/fsck_ext2fs/setup.c
sbin/fsck_ffs/setup.c
sbin/newfs/newfs.c
sbin/newfs_ext2fs/newfs_ext2fs.c
sbin/newfs_lfs/newfs.c
sbin/newfs_msdos/mkfs_msdos.c
sbin/newfs_udf/udf_core.c
sbin/resize_lfs/resize_lfs.c
usr.sbin/sysinst/geom.c
Home |
Main Index |
Thread Index |
Old Index