Deleted Added
full compact
ffsinfo.c (81586) ffsinfo.c (102231)
1/*
2 * Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz
3 * Copyright (c) 1980, 1989, 1993 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Christoph Herrmann and Thomas-Henning von Kamptz, Munich and Frankfurt.
8 *

--- 34 unchanged lines hidden (view full) ---

43static const char copyright[] =
44"@(#) Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz\n\
45Copyright (c) 1980, 1989, 1993 The Regents of the University of California.\n\
46All rights reserved.\n";
47#endif /* not lint */
48
49#ifndef lint
50static const char rcsid[] =
1/*
2 * Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz
3 * Copyright (c) 1980, 1989, 1993 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Christoph Herrmann and Thomas-Henning von Kamptz, Munich and Frankfurt.
8 *

--- 34 unchanged lines hidden (view full) ---

43static const char copyright[] =
44"@(#) Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz\n\
45Copyright (c) 1980, 1989, 1993 The Regents of the University of California.\n\
46All rights reserved.\n";
47#endif /* not lint */
48
49#ifndef lint
50static const char rcsid[] =
51 "$FreeBSD: head/sbin/ffsinfo/ffsinfo.c 81586 2001-08-13 14:06:34Z ru $";
51 "$FreeBSD: head/sbin/ffsinfo/ffsinfo.c 102231 2002-08-21 18:11:48Z trhodes $";
52#endif /* not lint */
53
54/* ********************************************************** INCLUDES ***** */
55#include <sys/param.h>
56#include <sys/disklabel.h>
57#include <sys/stat.h>
58
59#include <stdio.h>

--- 60 unchanged lines hidden (view full) ---

120 }
121
122 DBG_LEAVE;
123 return;
124}
125
126/* ************************************************************** main ***** */
127/*
52#endif /* not lint */
53
54/* ********************************************************** INCLUDES ***** */
55#include <sys/param.h>
56#include <sys/disklabel.h>
57#include <sys/stat.h>
58
59#include <stdio.h>

--- 60 unchanged lines hidden (view full) ---

120 }
121
122 DBG_LEAVE;
123 return;
124}
125
126/* ************************************************************** main ***** */
127/*
128 * ffsinfo(8) is a tool to dump all metadata of a filesystem. It helps to find
129 * errors is the filesystem much easier. You can run ffsinfo before and after
128 * ffsinfo(8) is a tool to dump all metadata of a file system. It helps to find
129 * errors is the file system much easier. You can run ffsinfo before and after
130 * an fsck(8), and compare the two ascii dumps easy with diff, and you see
131 * directly where the problem is. You can control how much detail you want to
132 * see with some command line arguments. You can also easy check the status
130 * an fsck(8), and compare the two ascii dumps easy with diff, and you see
131 * directly where the problem is. You can control how much detail you want to
132 * see with some command line arguments. You can also easy check the status
133 * of a filesystem, like is there is enough space for growing a filesystem,
133 * of a file system, like is there is enough space for growing a file system,
134 * or how many active snapshots do we have. It provides much more detailed
135 * information then dumpfs. Snapshots, as they are very new, are not really
136 * supported. They are just mentioned currently, but it is planned to run
137 * also over active snapshots, to even get that output.
138 */
139int
140main(int argc, char **argv)
141{

--- 503 unchanged lines hidden ---
134 * or how many active snapshots do we have. It provides much more detailed
135 * information then dumpfs. Snapshots, as they are very new, are not really
136 * supported. They are just mentioned currently, but it is planned to run
137 * also over active snapshots, to even get that output.
138 */
139int
140main(int argc, char **argv)
141{

--- 503 unchanged lines hidden ---