| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
correct the problem was added in r176575 by delphij on 2008-02-25.
PR: 138043
Reported by: Heikki Suonsivu
Notes:
svn path=/head/; revision=201708
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
robust. With these changes fsck is now able to detect and reliably
rebuild corrupted cylinder group maps. The -D option is no longer
necessary as it has been replaced by a prompt asking whether the
corrupted cylinder group should be rebuilt and doing so when requested.
These actions are only offered and taken when running fsck in manual
mode. Corrupted cylinder groups found during preen mode cause the fsck
to fail.
Add the -r option to free up excess unused inodes. Decreasing the
number of preallocated inodes reduces the running time of future
runs of fsck and frees up space that can allocated to files. The -r
option is ignored when running in preen mode.
Reviewed by: Xin LI <delphij@>
Sponsored by: Rsync.net
Notes:
svn path=/head/; revision=188110
|
|
|
|
|
|
|
|
|
| |
number read from cylinder group. Chances that we read a smarshed
cylinder group, and we can not 100% trust information it has
supplied. fsck_ffs(8) will crash otherwise for some cases.
Notes:
svn path=/head/; revision=176575
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=136281
|
|
|
|
|
|
|
| |
Inspired by: kan
Notes:
svn path=/head/; revision=134589
|
|
|
|
|
|
|
|
|
| |
per letter dated July 22, 1999.
Approved by: core, imp
Notes:
svn path=/head/; revision=128073
|
|
|
|
|
|
|
| |
with a progress update.
Notes:
svn path=/head/; revision=126345
|
|
|
|
|
|
|
|
|
|
| |
so it isn't a safe way of handling [mc]alloc failures.)
PR: misc/61800
Approved by: rwatson (mentor)
Notes:
svn path=/head/; revision=125036
|
|
|
|
| |
Notes:
svn path=/head/; revision=114589
|
|
|
|
| |
Notes:
svn path=/head/; revision=103949
|
|
|
|
|
|
|
|
|
| |
attributes.
Sponsored by: DARPA & NAI Labs.
Notes:
svn path=/head/; revision=103885
|
|
|
|
|
|
|
|
|
| |
if it doesn't do anything yet.
Sponsored by: DARPA & NAI Labs.
Notes:
svn path=/head/; revision=103398
|
|
|
|
| |
Notes:
svn path=/head/; revision=102231
|
|
|
|
|
|
|
|
|
| |
the sparc64 build.
Tested on: sparc64, i386
Notes:
svn path=/head/; revision=101037
|
|
|
|
|
|
|
| |
Format changes by peter
Notes:
svn path=/head/; revision=100935
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
imposed by the filesystem structure itself remains. With 16k blocks,
the maximum file size is now just over 128TB.
For now, the UFS1 file size limit is left unchanged so as to remain
consistent with RELENG_4, but it too could be removed in the future.
Reviewed by: mckusick
Notes:
svn path=/head/; revision=98888
|
|
|
|
|
|
|
|
|
| |
encounters very large file sizes in the filesystem.
Reviewed by: mckusick
Notes:
svn path=/head/; revision=98879
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
Notes:
svn path=/head/; revision=98542
|
|
|
|
| |
Notes:
svn path=/head/; revision=96707
|
|
|
|
|
|
|
|
|
|
| |
Remove support for converting old FFS formats to newer.
Submitted by: mckusick
Sponspored by: DARPA & NAI Labs.
Notes:
svn path=/head/; revision=96483
|
|
|
|
|
|
|
|
|
|
| |
o ansi function prototypes
o unifdef -D__STDC__
o __dead2 on usage prototype
o remove now-bogus main prototype
Notes:
svn path=/head/; revision=92839
|
|
|
|
|
|
|
|
|
| |
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?)
Notes:
svn path=/head/; revision=92806
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=86514
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=74556
|
|
|
|
|
|
|
|
|
| |
They can't be created via mknod and the kernel crashes if it encounters
such an inode.
Approved by: mckusick
Notes:
svn path=/head/; revision=72525
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
field, so it was possible for a filesystem marked clean by fsck_ffs
to cause kernel crashes later when mounted. This could occur when
fsck_ffs was used to repair a badly corrupted filesystem.
As pointed out by bde, it is not sufficient to restrict di_size to
just the superblock fs_maxfilesize limit. The use of 32-bit logical
block numbers (both in fsck and the kernel) induces another file
size limit which is usually lower than fs_maxfilesize. Also, the
old 4.3BSD filesystem does not have fs_maxfilesize initialised.
Following this change, fsck_ffs will enforce exactly the same
file size limits as are used by the kernel.
PR: kern/15065
Discussed with: bde
Reviewed by: bde, mckusick
Notes:
svn path=/head/; revision=71884
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=70050
|
|
|
|
|
|
|
| |
Reviewed by: grog
Notes:
svn path=/head/; revision=69800
|
|
|
|
|
|
|
|
|
|
|
|
| |
all have zero length. A non-zero length panic's the kernel when one
of these is deleted.
PR: 19426
Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
Reviewed by: dwmalone@FreeBSD.org
Notes:
svn path=/head/; revision=63003
|
|
|
|
|
|
|
|
|
|
| |
effect on operation of fsck on filesystems without snapshots.
If you get compilation errors, be sure that you have copies of
/usr/include/sys/mount.h (1.94), /usr/include/sys/stat.h (1.21),
and /usr/include/ufs/ffs/fs.h (1.16) as of July 4, 2000 or later.
Notes:
svn path=/head/; revision=62668
|
|
|
|
| |
Notes:
svn path=/head/; revision=50476
|
|
|
|
|
|
|
| |
(e.g. RCS Id:)
Notes:
svn path=/head/; revision=41477
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=41474
|
|
|
|
| |
Notes:
svn path=/head/; revision=37443
|
|
|
|
| |
Notes:
svn path=/head/; revision=37236
|
|
|
|
| |
Notes:
svn path=/head/; revision=37000
|
|
|
|
|
|
|
|
| |
Submitted by: Kirk McKusick (mcKusick@mckusick.com)
Obtained from: WHistle development tree
Notes:
svn path=/head/; revision=34266
|
|
|
|
| |
Notes:
svn path=/head/; revision=23999
|
|
|
|
|
|
|
| |
Fixed style bugs in FreeBSD changes.
Notes:
svn path=/head/; revision=23798
|
|
|
|
|
|
|
|
| |
skipping code that overrides ours sooner. One should be eliminated,
but for now it works.
Notes:
svn path=/head/; revision=23675
|
|
|
|
| |
Notes:
svn path=/head/; revision=8871
|
|
|
|
|
|
|
| |
Fix all the warnings from `gcc -Wall'.
Notes:
svn path=/head/; revision=7585
|
|
|
|
| |
Notes:
svn path=/head/; revision=2605
|
|
|
|
|
|
|
|
|
|
| |
1) dir.c: get byte order right in mkentry()
2) pass1.c: When doing -c2 conversion, do secsize reads for a symlink -
not doing so was causing the conversion to fail because the device
driver can't deal with short reads.
Notes:
svn path=/head/; revision=2603
|
|
|
|
| |
Notes:
svn path=/head/; revision=1820
|
|
Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
Notes:
svn path=/head/; revision=1558
|