libufs.h (174668) | libufs.h (207141) |
---|---|
1/* 2 * Copyright (c) 2002 Juli Mallett. All rights reserved. 3 * 4 * This software was written by Juli Mallett <jmallett@FreeBSD.org> for the 5 * FreeBSD project. Redistribution and use in source and binary forms, with 6 * or without modification, are permitted provided that the following 7 * conditions are met: 8 * --- 10 unchanged lines hidden (view full) --- 19 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 23 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 * POSSIBILITY OF SUCH DAMAGE. 26 * | 1/* 2 * Copyright (c) 2002 Juli Mallett. All rights reserved. 3 * 4 * This software was written by Juli Mallett <jmallett@FreeBSD.org> for the 5 * FreeBSD project. Redistribution and use in source and binary forms, with 6 * or without modification, are permitted provided that the following 7 * conditions are met: 8 * --- 10 unchanged lines hidden (view full) --- 19 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 23 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 * POSSIBILITY OF SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/lib/libufs/libufs.h 174668 2007-12-16 18:02:37Z phk $ | 27 * $FreeBSD: head/lib/libufs/libufs.h 207141 2010-04-24 07:05:35Z jeff $ |
28 */ 29 30#ifndef __LIBUFS_H__ 31#define __LIBUFS_H__ 32 33/* 34 * libufs macros (internal, non-exported). 35 */ --- 30 unchanged lines hidden (view full) --- 66 * userland ufs disk. 67 */ 68struct uufsd { 69 const char *d_name; /* disk name */ 70 int d_ufs; /* decimal UFS version */ 71 int d_fd; /* raw device file descriptor */ 72 long d_bsize; /* device bsize */ 73 ufs2_daddr_t d_sblock; /* superblock location */ | 28 */ 29 30#ifndef __LIBUFS_H__ 31#define __LIBUFS_H__ 32 33/* 34 * libufs macros (internal, non-exported). 35 */ --- 30 unchanged lines hidden (view full) --- 66 * userland ufs disk. 67 */ 68struct uufsd { 69 const char *d_name; /* disk name */ 70 int d_ufs; /* decimal UFS version */ 71 int d_fd; /* raw device file descriptor */ 72 long d_bsize; /* device bsize */ 73 ufs2_daddr_t d_sblock; /* superblock location */ |
74 struct csum *d_sbcsum; /* Superblock summary info */ |
|
74 caddr_t d_inoblock; /* inode block */ 75 ino_t d_inomin; /* low inode */ 76 ino_t d_inomax; /* high inode */ 77 union { 78 struct fs d_fs; /* filesystem information */ 79 char d_sb[MAXBSIZE]; 80 /* superblock as buffer */ 81 } d_sbunion; --- 22 unchanged lines hidden (view full) --- 104 */ 105ssize_t bread(struct uufsd *, ufs2_daddr_t, void *, size_t); 106ssize_t bwrite(struct uufsd *, ufs2_daddr_t, const void *, size_t); 107int berase(struct uufsd *, ufs2_daddr_t, ufs2_daddr_t); 108 109/* 110 * cgroup.c 111 */ | 75 caddr_t d_inoblock; /* inode block */ 76 ino_t d_inomin; /* low inode */ 77 ino_t d_inomax; /* high inode */ 78 union { 79 struct fs d_fs; /* filesystem information */ 80 char d_sb[MAXBSIZE]; 81 /* superblock as buffer */ 82 } d_sbunion; --- 22 unchanged lines hidden (view full) --- 105 */ 106ssize_t bread(struct uufsd *, ufs2_daddr_t, void *, size_t); 107ssize_t bwrite(struct uufsd *, ufs2_daddr_t, const void *, size_t); 108int berase(struct uufsd *, ufs2_daddr_t, ufs2_daddr_t); 109 110/* 111 * cgroup.c 112 */ |
113ufs2_daddr_t cgballoc(struct uufsd *); 114int cgbfree(struct uufsd *, ufs2_daddr_t, long); 115ino_t cgialloc(struct uufsd *); |
|
112int cgread(struct uufsd *); 113int cgread1(struct uufsd *, int); | 116int cgread(struct uufsd *); 117int cgread1(struct uufsd *, int); |
118int cgwrite(struct uufsd *); |
|
114int cgwrite1(struct uufsd *, int); 115 116/* 117 * inode.c 118 */ 119int getino(struct uufsd *, void **, ino_t, int *); | 119int cgwrite1(struct uufsd *, int); 120 121/* 122 * inode.c 123 */ 124int getino(struct uufsd *, void **, ino_t, int *); |
125int putino(struct uufsd *); |
|
120 121/* 122 * sblock.c 123 */ 124int sbread(struct uufsd *); 125int sbwrite(struct uufsd *, int); 126 127/* 128 * type.c 129 */ 130int ufs_disk_close(struct uufsd *); 131int ufs_disk_fillout(struct uufsd *, const char *); 132int ufs_disk_fillout_blank(struct uufsd *, const char *); 133int ufs_disk_write(struct uufsd *); 134 | 126 127/* 128 * sblock.c 129 */ 130int sbread(struct uufsd *); 131int sbwrite(struct uufsd *, int); 132 133/* 134 * type.c 135 */ 136int ufs_disk_close(struct uufsd *); 137int ufs_disk_fillout(struct uufsd *, const char *); 138int ufs_disk_fillout_blank(struct uufsd *, const char *); 139int ufs_disk_write(struct uufsd *); 140 |
141/* 142 * ffs_subr.c 143 */ 144void ffs_clrblock(struct fs *, u_char *, ufs1_daddr_t); 145void ffs_clusteracct(struct fs *, struct cg *, ufs1_daddr_t, int); 146void ffs_fragacct(struct fs *, int, int32_t [], int); 147int ffs_isblock(struct fs *, u_char *, ufs1_daddr_t); 148int ffs_isfreeblock(struct fs *, u_char *, ufs1_daddr_t); 149void ffs_setblock(struct fs *, u_char *, ufs1_daddr_t); 150 |
|
135__END_DECLS 136 137#endif /* __LIBUFS_H__ */ | 151__END_DECLS 152 153#endif /* __LIBUFS_H__ */ |