#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
241012 |
|
27-Sep-2012 |
mdf |
Fix fsck_ffs build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
|
#
229403 |
|
03-Jan-2012 |
ed |
Replace index() and rindex() calls with strchr() and strrchr().
The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard.
This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
|
#
221110 |
|
27-Apr-2011 |
des |
Mechanical whitespace cleanup.
MFC after: 3 weeks
|
#
208330 |
|
20-May-2010 |
mckusick |
Add support to background fsck to delete zero-length directories.
|
#
202131 |
|
11-Jan-2010 |
mckusick |
Cast 64-bit quantity to intptr_t rather than int so as to work properly with 64-bit architectures (such as amd64).
Reported by: Xin LI and Josh Paetzel
|
#
202109 |
|
11-Jan-2010 |
mckusick |
This update utilizes new fsck sysctl commands that allow fsck running in background mode to correct expected inconsistencies that arise during directory rename (see immediately previous update to this file for details). If run on a kernel without the new functionality, background fsck will simply ignore these inconsistencies rather than fail.
Reported by: jeff
|
#
202107 |
|
11-Jan-2010 |
mckusick |
When renaming a directory it passes through several intermediate states. First its new name will be created causing it to have two names (from possibly different parents). Next, if it has different parents, its value of ".." will be changed from pointing to the old parent to pointing to the new parent. Concurrently, its old name will be removed bringing it back into a consistent state. When fsck encounters an extra name for a directory, it offers to remove the "extraneous hard link"; when it finds that the names have been changed but the update to ".." has not happened, it offers to rewrite ".." to point at the correct parent. Both of these changes were considered unexpected so would cause fsck in preen mode or fsck in background mode to fail with the need to run fsck manually to fix these problems.
This update changes these errors to be expected so that in preen mode fsck will simply fix these transitional errors. For now, background fsck will note these errors, but will need additional kernel support to fix them, so will simply ignore them rather than fail. A future update will allow background fsck to fix these problems.
Reported by: jeff
|
#
176574 |
|
26-Feb-2008 |
delphij |
In pass2check(): Be more strict with the inode information before further processing the information. chk1 is more prone to crash when insane information is provided by the on-disk inode, and does not even work if the inode is being smarshed badly.
|
#
136281 |
|
08-Oct-2004 |
truckman |
Eliminate linked list used to track inodes with an initial link count of zero and instead encode this information in the inode state. Pass 4 performed a linear search of this list for each inode in the file system, which performs poorly if the list is long.
Reviewed by: sam & keramida (an earlier version of the patch), mckusick MFC after: 1 month
|
#
134589 |
|
01-Sep-2004 |
scottl |
Create DIP_SET() and IBLK_SET() macros to fix lvalue warnings.
Inspired by: kan
|
#
128073 |
|
09-Apr-2004 |
markm |
Remove advertising clause from University of California Regent's license, per letter dated July 22, 1999.
Approved by: core, imp
|
#
126345 |
|
28-Feb-2004 |
scottl |
In the case of a background fsck, periodically update the process title with a progress update.
|
#
114589 |
|
03-May-2003 |
obrien |
Use __FBSDID() to quiet GCC 3.3 warnings.
|
#
102411 |
|
25-Aug-2002 |
charnier |
Replace various spelling with FALLTHROUGH which is lint()able
|
#
101037 |
|
31-Jul-2002 |
mux |
Fix a bunch of format string warnings which broke the sparc64 build.
Tested on: sparc64, i386
|
#
100935 |
|
30-Jul-2002 |
phk |
Warning cleanup.
Format changes by peter
|
#
98542 |
|
21-Jun-2002 |
mckusick |
This commit adds basic support for the UFS2 filesystem. The UFS2 filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined.
Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t.
Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used).
Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org>
|
#
96483 |
|
12-May-2002 |
phk |
UFS2 preparation commit: Remove support for converting old FFS formats to newer.
Submitted by: mckusick Sponspored by: DARPA & NAI Labs.
|
#
92839 |
|
20-Mar-2002 |
imp |
o __P removed o ansi function prototypes o unifdef -D__STDC__ o __dead2 on usage prototype o remove now-bogus main prototype
|
#
92806 |
|
20-Mar-2002 |
obrien |
Remove 'register' keyword. It does not help modern compilers, and some may take some hit from it. (I also found several functions that listed *every* of its 10 local vars with "register" -- just how many free registers do people think machines have?)
|
#
86514 |
|
17-Nov-2001 |
iedowse |
Fix a large number of -Wall, -Wformat and -W compiler warnings. These were mainly missing casts or wrong format strings in printf statements, but there were also missing includes, unused variables, functions and arguments.
The choice of `long' vs `int' still seems almost random in a lot of places though.
|
#
86512 |
|
17-Nov-2001 |
iedowse |
Give a more useful diagnostic when an extraneous hard link to a directory is encountered. This includes the full path of the directory that will be removed if the user answers "y" to the "REMOVE?" question.
PR: bin/226851 Submitted by: KOIE Hide <hide@koie.org> MFC after: 1 week
|
#
74556 |
|
21-Mar-2001 |
mckusick |
Additions to run checks on live filesystems. This change will not affect current systems until fsck is modified to use these new facilities. To try out this change, set the fsck passno to zero in /etc/fstab to cause the filesystem to be mounted without running fsck, then run `fsck_ffs -p -B <filesystem>' after the system has been brought up multiuser to run a background cleanup on <filesystem>. Note that the <filesystem> in question must have soft updates enabled.
|
#
70050 |
|
15-Dec-2000 |
iedowse |
Add a simple SIGINFO handler to fsck_ffs. Shortly after receipt of a SIGINFO (normally via Ctrl-T), a line will be output indicating the current phase number and progress information relevant to the current phase.
Approved by: mckusick
|
#
50476 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
41477 |
|
03-Dec-1998 |
julian |
Cosmetic and documentation changes brought from earlier FreeBSD versions. (e.g. RCS Id:)
|
#
41474 |
|
03-Dec-1998 |
julian |
Reviewed by: Don Lewis <Don.Lewis@tsc.tdk.com> Submitted by: Kirk McKusick <mckusick@McKusick.COM> Obtained from: Mckusick, BSDI and a host of others
This exactly matches Kirks sources imported under the Tag MCKUSICK2. These are as supplied by kirk with one small change needed to compile under freeBSD.
Some FreeBSD patches will be added back, though many have been added to Kirk's sources already.
|
#
37000 |
|
15-Jun-1998 |
charnier |
Correct use of .Nm. Add rcsid. Remove unused #includes. Use err(3).
|
#
34266 |
|
08-Mar-1998 |
julian |
Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman) Submitted by: Kirk McKusick (mcKusick@mckusick.com) Obtained from: WHistle development tree
|
#
23799 |
|
12-Mar-1997 |
bde |
Finished (?) merging with Lite2: cleaned up #include mess.
|
#
23675 |
|
11-Mar-1997 |
peter |
Merge from Lite2. Note that Lite2 has it's own filesystem clean check skipping code that overrides ours sooner. One should be eliminated, but for now it works.
|
#
8871 |
|
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
#
7585 |
|
02-Apr-1995 |
bde |
Submitted by: phk, added to by bde
Fix all the warnings from `gcc -Wall'.
|
#
1558 |
|
26-May-1994 |
rgrimes |
BSD 4.4 Lite sbin Sources
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
|