1 .\" Author: Juli Mallett <jmallett@FreeBSD.org>
2 .\" Date: June 04, 2003
4 .\" Manual page for libufs functions:
8 .\" This file is in the public domain.
17 .Nd read cylinder groups of UFS disks
23 .In ufs/ufs/ufsmount.h
28 .Fn cgread "struct uufsd *disk"
30 .Fn cgread1 "struct uufsd *disk" "int c"
36 functions provide cylinder group reads for
41 function reads from one cylinder group, specified by
45 field of a userland UFS disk structure.
48 field to the cylinder group number
53 function operates on sequential cylinder groups.
56 function is equivalent to calling
58 with a cylinder group specifier equivalent to the value of the current
60 field, and then incrementing the
64 Both functions return 0 if there are no more cylinder groups to read,
65 1 if there are more cylinder groups, and \-1 on error.
71 for any of the errors specified for the library function
76 has semantically identical failure conditions to those of
82 These functions first appeared as part of
87 .An Juli Mallett Aq jmallett@FreeBSD.org