1 .\" Author: Juli Mallett <jmallett@FreeBSD.org>
2 .\" Date: June 04, 2003
4 .\" Manual page for libufs functions:
9 .\" This file is in the public domain.
17 .Nm cgread , cgread1, cgwrite1
18 .Nd read/write cylinder groups of UFS disks
24 .In ufs/ufs/ufsmount.h
29 .Fn cgread "struct uufsd *disk"
31 .Fn cgread1 "struct uufsd *disk" "int c"
33 .Fn cgwrite1 "struct uufsd *disk" "int c"
39 functions provide cylinder group reads for
44 function reads from one cylinder group, specified by
48 field of a userland UFS disk structure.
51 field to the cylinder group number
56 function operates on sequential cylinder groups.
59 function is equivalent to calling
61 with a cylinder group specifier equivalent to the value of the current
63 field, and then incrementing the
69 function stores cylinder group specified by
73 field of a userland UFS disk structure on disk.
75 Both functions return 0 if there are no more cylinder groups to read,
76 1 if there are more cylinder groups, and \-1 on error.
82 for any of the errors specified for the library function
87 has semantically identical failure conditions to those of
94 for any of the errors specified for the library function
101 These functions first appeared as part of
106 .An Juli Mallett Aq Mt jmallett@FreeBSD.org