Lines Matching defs:fs

228 #include	<sys/fs/ufs_fsdir.h>
229 #include <sys/fs/ufs_inode.h>
230 #include <sys/fs/ufs_fs.h>
231 #include <sys/fs/ufs_log.h>
271 #define CGSIZE(fs) \
273 /* blktot size */ (fs)->fs_cpg * sizeof (long) + \
274 /* blks size */ (fs)->fs_cpg * (fs)->fs_nrpos * sizeof (short) + \
275 /* inode map */ howmany((fs)->fs_ipg, NBBY) + \
276 /* block map */ howmany((fs)->fs_cpg * (fs)->fs_spc / NSPF(fs), NBBY))
283 * N.B.: MAXIpG must be a multiple of INOPB(fs).
285 #define MAXIpG(fs) roundup((fs)->fs_bsize * NBBY / 3, INOPB(fs))
403 static int isblock(struct fs *fs, unsigned char *cp, int h);
404 static void clrblock(struct fs *fs, unsigned char *cp, int h);
405 static void setblock(struct fs *fs, unsigned char *cp, int h);
439 struct fs fs;
442 #define sblock fsun.fs
443 #define altsblock altfsun.fs
561 static int Pflag; /* probe to which size the fs can be grown */
581 int checksblock(struct fs, int);
617 static struct csum *read_summaryinfo(struct fs *);
632 struct statvfs64 fs;
774 grow = 1; /* probe mode implies fs growing */
1431 if (statvfs64(MNTTAB, &fs) < 0) {
1437 if (strcmp(MNTTYPE_MNTFS, fs.f_basetype) != 0) {
1552 * make the fs unmountable
1904 * fs)). The size of these tables is inversely proportional to the
1911 sblock.fs_sbsize = fragroundup(&sblock, sizeof (struct fs));
1919 totalsbsize = sizeof (struct fs) + rotblsize;
3401 isblock(struct fs *fs, unsigned char *cp, int h)
3405 switch (fs->fs_frag) {
3418 (void) fprintf(stderr, "isblock bad fs_frag %d\n", fs->fs_frag);
3427 clrblock(struct fs *fs, unsigned char *cp, int h)
3429 switch ((fs)->fs_frag) {
3444 gettext("clrblock: bad fs_frag value %d\n"), fs->fs_frag);
3453 setblock(struct fs *fs, unsigned char *cp, int h)
3455 switch (fs->fs_frag) {
3470 gettext("setblock: bad fs_frag value %d\n"), fs->fs_frag);
3498 gettext(" -m : dump fs cmd line used to make this partition\n"
3954 checksblock(struct fs sb, int proceed)
4037 /* log is not okay; check the fs */
4057 /* log allocation block is not okay; check the fs */
4557 * passed 'fs' structure into a new allocated array of csum structures.
4562 read_summaryinfo(struct fs *fsp)