diff options
author | jmallett <jmallett@FreeBSD.org> | 2003-01-19 01:31:26 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2003-01-19 01:31:26 +0000 |
commit | 445adec218a00bb504836130a49e8ae3e1aa2af1 (patch) | |
tree | 46dc1db9007edc7cf4daa7a8c68bfcfaa1bf15ff /lib/libufs/libufs.h | |
parent | 8af24a10fdd1ff689c2d91440dad34dd07112831 (diff) | |
download | FreeBSD-src-445adec218a00bb504836130a49e8ae3e1aa2af1.zip FreeBSD-src-445adec218a00bb504836130a49e8ae3e1aa2af1.tar.gz |
Add facility to read one, or a string of, cylinger groups.
Diffstat (limited to 'lib/libufs/libufs.h')
-rw-r--r-- | lib/libufs/libufs.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libufs/libufs.h b/lib/libufs/libufs.h index 266f787..996a442 100644 --- a/lib/libufs/libufs.h +++ b/lib/libufs/libufs.h @@ -79,10 +79,17 @@ struct uufsd { char d_sb[MAXBSIZE]; /* superblock as buffer */ } d_sbunion; + union { + struct cg d_cg; /* cylinder group */ + char d_buf[MAXBSIZE]; + /* cylinder group storage */ + } d_cgunion; + int d_ccg; /* current cylinder group */ const char *d_error; /* human readable disk error */ int d_mine; /* internal flags */ #define d_fs d_sbunion.d_fs #define d_sb d_sbunion.d_sb +#define d_cg d_cgunion.d_cg }; __BEGIN_DECLS @@ -98,6 +105,12 @@ ssize_t bread(struct uufsd *, ufs2_daddr_t, void *, size_t); ssize_t bwrite(struct uufsd *, ufs2_daddr_t, const void *, size_t); /* + * cgroup.c + */ +int cgread(struct uufsd *); +int cgread1(struct uufsd *, int); + +/* * inode.c */ int getino(struct uufsd *, void **, ino_t, int *); |