Revision
9440 -
Directory Listing
-
[select for diffs]
Modified
Sun Mar 5 18:19:24 2017 UTC
(7 years, 3 months ago)
by
laffer1
Diff to
previous 9439
,
to
selected 5739
When running the -m option to generate a newfs(8) command suitable for
recreating the filesystem, check for and output the -i, -k, and -l
options if appropriate.
Note the remaining deficiencies of the -m option in the dumpfs(8)
manual page. Specifically that newfs(8) options -E, -R, -S, and -T
options are not handled and that -p is not useful so is omitted.
Also document that newfs(8) options -n and -r are neither checked
for nor output but should be. The -r flag is needed if the filesystem
uses gjournal(8).
Revision
9349 -
Directory Listing
-
[select for diffs]
Modified
Sat Mar 4 16:52:34 2017 UTC
(7 years, 3 months ago)
by
laffer1
Diff to
previous 9313
,
to
selected 5739
According to devctl(4), clients must read events whole; they may not piece them
together from multiple reads(). It's as if /dev/devctl is a datagram device
instead of a stream device. However, devd's internal buffer was too small
(1025 bytes) to read an entire ereport.fs.zfs.checksum event (variable, up to
~1300 bytes). This commit enlarges the buffer to 8k.
Revision
8639 -
Directory Listing
-
[select for diffs]
Modified
Sun Sep 25 18:17:36 2016 UTC
(7 years, 8 months ago)
by
laffer1
Diff to
previous 8634
,
to
selected 5739
do not round up the size of the UFS filesystem to the fragment size when comparing tis size with the size of the media to determine if the last block is unused.
Revision
8065 -
Directory Listing
-
[select for diffs]
Modified
Thu Sep 15 21:51:28 2016 UTC
(7 years, 9 months ago)
by
laffer1
Diff to
previous 8034
,
to
selected 5739
add global and per-module sysctls/tunables to enable/disable metadata taste. that should help to handle some cases when disk ahas some RAID metadata that should be ignored.
Revision
7889 -
Directory Listing
-
[select for diffs]
Modified
Wed Sep 14 16:57:47 2016 UTC
(7 years, 9 months ago)
by
laffer1
Diff to
previous 7881
,
to
selected 5739
fsck_ffs shall accept the configured journal size, and not refuse to
operate on it if journal size is greater then SUJ_MAX. The later
constant is only to select maximal journal size when user did not
specified size explicitely.
Revision
6884 -
Directory Listing
-
[select for diffs]
Modified
Tue Oct 21 22:30:33 2014 UTC
(9 years, 7 months ago)
by
laffer1
Diff to
previous 6677
,
to
selected 5739
The input path in routed(8) will accept queries from any source and
attempt to answer them. However, the output path assumes that the
destination address for the response is on a directly connected
network.
Obtained from: FreeBSD
Revision
3950 -
Directory Listing
-
[select for diffs]
Modified
Fri May 27 00:58:26 2011 UTC
(13 years ago)
by
laffer1
Diff to
previous 3919
,
to
selected 5739
Raise the default blocksize for UFS/FFS filesystems from
16K to 32K and the default fragment size from 2K to 4K.
The rational is that most disks are now running with 4K
sectors. While they can (slowly) simulate 512-byte sectors
by doing a read-modify-write, it is desirable to avoid this
functionality. By raising the minimum filesystem allocation
to 4K, the filesystem will never trigger the small sector
emulation.
Also, the growth of disk sizes has lead us to double the
default block size about every ten years. The rise from 8K
to 16K blocks was done in 2001. So, by the 10-year metric,
the time has come for 32K blocks.
Obtained from: FreeBSD, mckusick
Revision
3572 -
Directory Listing
-
[select for diffs]
Modified
Fri Nov 26 05:10:39 2010 UTC
(13 years, 6 months ago)
by
laffer1
Diff to
previous 3571
,
to
selected 5739
- Check that strtoul(3) succeeds to convert the entire string in a few
places.
- In getasciilabel(), set the disk type only when a valid type is given.
Obtained from: FreeBSD
Revision
3570 -
Directory Listing
-
[select for diffs]
Modified
Fri Nov 26 04:51:37 2010 UTC
(13 years, 6 months ago)
by
laffer1
Diff to
previous 3567
,
to
selected 5739
Handle geli-encrypted root disk devices.
Add support for identifying a journaled root filesystem.
Fix support for identifying the given /dev/vinum/root example.
Obtained from: FreeBSD
Revision
3567 -
Directory Listing
-
[select for diffs]
Modified
Tue Nov 23 01:37:07 2010 UTC
(13 years, 6 months ago)
by
laffer1
Diff to
previous 3565
,
to
selected 5739
Author: mckusick
Date: Tue Nov 23 01:32:44 2010
New Revision: 215729
URL: http://svn.freebsd.org/changeset/base/215729
Log:
MFC of 213119
Reported problem:
Large (60GB) filesystems created using "newfs -U -O 1 -b 65536 -f 8192"
show incorrect results from "df" for free and used space when mounted
immediately after creation. fsck on the new filesystem (before ever
mounting it once) gives a "SUMMARY INFORMATION BAD" error in phase 5.
This error hasn't occurred in any runs of fsck immediately after
"newfs -U -b 65536 -f 8192" (leaving out the "-O 1" option).
Solution:
The default UFS1 superblock is located at offset 8K in the filesystem
partition; the default UFS2 superblock is located at offset 64K in
the filesystem partition. For UFS1 filesystems with a blocksize of
64K, the first alternate superblock resides at 64K which is the the
location used for the default UFS2 superblock. By default, the
system first checks for a valid superblock at the default location
for a UFS2 filoesystem. For a UFS1 filesystem with a blocksize of
64K, there is a valid UFS1 superblock at this location. Thus, even
though it is expected to be a backup superblock, the system will
use it as its default superblock. So, we have to ensure that all the
statistcs on usage are correct in this first alternate superblock
as it is the superblock that will actually be used.
While tracking down this problem, another limitation of UFS1 became
evident. For UFS1, the number of inodes per cylinder group is stored
in an int16_t. Thus the maximum number of inodes per cylinder group
is limited to 2^15 - 1. This limit can easily be exceeded for block
sizes of 32K and above. Thus when building UFS1 filesystems, newfs
must limit the number of inodes per cylinder group to 2^15 - 1.
Reported by: Guy Helmer<ghelmer@palisadesys.com>
Followup by: Bruce Cran <brucec@freebsd.org>
PR: 107692
Obtained from: FreeBSD
Revision
3565 -
Directory Listing
-
[select for diffs]
Modified
Sat Nov 20 17:49:41 2010 UTC
(13 years, 6 months ago)
by
laffer1
Diff to
previous 3488
,
to
selected 5739
Several portions of the kernel and userland code related to UFS file
systems (and UFS2) cannot properly handle inode counts above 2^31 due
to use of int types. Based on a patch from FreeBSD, I've modified
our UFS2 implementation to handle unsigned values for inode counts
which should allow for file systems greater than 16TB.
newfs and growfs was also modified.
Revision
3199 -
Directory Listing
-
[select for diffs]
Modified
Sat Nov 28 22:44:36 2009 UTC
(14 years, 6 months ago)
by
laffer1
Diff to
previous 3084
,
to
selected 5739
Import OpenBSD's sysctl sensors framework. This is based on work by Constantine A. Murenin for the 2007 Google summer of code for FreeBSD.
Includes:
sample config file for sensord
rc scripts
documentation fixes and updates
sys/kern/kern_sensors.c
sys/sensors.h
This is compatible with OpenBSD 4.1 and 4.2 in terms of the userland bits.
Revision
3084 -
Directory Listing
-
[select for diffs]
Modified
Wed Oct 7 01:20:00 2009 UTC
(14 years, 8 months ago)
by
laffer1
Diff to
previous 3079
,
to
selected 5739
The cylinder group tag cg_initediblk needs to match the number of inodes
actually initialized. In the growfs case for UFS2, no inodes were actually
being initialized and the number of inodes noted as initialized was the
number of inodes per group. This created a filesystem that was deemed
corrupted because the inodes thus added were full of garbage.
Obtained from: FreeBSD, mjacob
Revision
2012 -
Directory Listing
-
[select for diffs]
Modified
Tue Nov 11 21:29:37 2008 UTC
(15 years, 7 months ago)
by
laffer1
Diff to
previous 1466
,
to
selected 5739
Remove mca which was only used for ia64.
Add recoverdisk, a handy utility for hard drives and optical media.
Sync idmapd with freebsd 7.
Switch to the new world order.
Revision
1273 -
Directory Listing
-
[select for diffs]
Modified
Tue Oct 9 02:15:42 2007 UTC
(16 years, 8 months ago)
by
laffer1
Diff to
previous 1218
,
to
selected 5739
newfs_msdos is very slow, especially when working with usb flash drives aka memory sticks.
To speed things up, use 128KB chunks for I/O as they do on Mac OS X. This patch is based on some code contributed to the freebsd file system mailing list by Mark Day @ apple.
I tested this on a Lexar 1GB stick that is only a few months old. Before the patch, newfs_msdos took about 2 minutes. Without the patch, the command returns nearly instantly. Obviously buffering is occuring. The file system seems to work fine, although I plan to do further testing.
Revision
1217 -
Directory Listing
-
[select for diffs]
Modified
Mon Sep 3 02:27:28 2007 UTC
(16 years, 9 months ago)
by
laffer1
Diff to
previous 1142
,
to
selected 5739
Don't treat failure to find the operator GID as a fatal
error; this made it impossible to use newfs (and mdmfs) when /etc/group
is missing and /etc is read-only.
Obtained from FreeBSD
Revision
908 -
Directory Listing
-
[select for diffs]
Modified
Sat Apr 7 02:17:03 2007 UTC
(17 years, 2 months ago)
by
laffer1
Diff to
previous 872
,
to
selected 5739
Clean up the chroot patch. Remove SLOGGER definition since its no longer used. Go to WARNS 3 since there
are const errors with the second parameter of kenv. I could fix this with a const char [] definition for each entry,
but the current approach is easier to read.
This effectively equates to FreeBSD init.c 1.63 with some local changes. Like the previous chroot patch commit,
this is based on work by Oliver Fromme.
Revision
669 -
Directory Listing
-
[select for diffs]
Modified
Thu Jan 18 03:44:01 2007 UTC
(17 years, 5 months ago)
by
laffer1
Diff to
previous 661
,
to
selected 5739
Revert to setting vlan and vlandev parameters synchronously, as soon as both have been read from the command line. Still use the callback, but this time only to verify that both vlan and vlandev have been found on the command line.
Revision
508 -
Directory Listing
-
[select for diffs]
Modified
Wed Jan 3 03:24:21 2007 UTC
(17 years, 5 months ago)
by
laffer1
Diff to
previous 507
,
to
selected 5739
Remove ealloc and sprite headers. ealloc is now provided by libutil and the few definitions needed in sprite.h have been moved.
Switch to c99 stdbool.
Revision
501 -
Directory Listing
-
[select for diffs]
Modified
Tue Jan 2 09:50:08 2007 UTC
(17 years, 5 months ago)
by
laffer1
Diff to
previous 500
,
to
selected 5739
Add -o and -p options from DragonFly.
-0 keyword causes rcorder to generate the dependancy list required to execute
a particular keyword.
-p generated PROVIDE keywords for the specified files.
TODO: document these.
Revision
499 -
Directory Listing
-
[select for diffs]
Modified
Tue Jan 2 08:13:30 2007 UTC
(17 years, 5 months ago)
by
laffer1
Diff to
previous 498
,
to
selected 5739
Do not pass through the tailing newline char form ctime(3) output to
setproctitle(3) in order to get rid of the \n escape sequence in ps(1) output
of a dump(8) process.
Revision
493 -
Directory Listing
-
[select for diffs]
Modified
Tue Jan 2 07:52:31 2007 UTC
(17 years, 5 months ago)
by
laffer1
Diff to
previous 492
,
to
selected 5739
Obtained from FreeBSD:
Be more like Windows and Linux and send our hostname in the host-name
option if none is given in the config file. Also add #ifdefd out
support for sending a client ID based on our MAC address.
PR: bin/94743, bin/76401
Submitted by: Frank Behrens <frank at pinky dot sax dot de>
Revision
492 -
Directory Listing
-
[select for diffs]
Modified
Tue Jan 2 07:51:20 2007 UTC
(17 years, 5 months ago)
by
laffer1
Diff to
previous 491
,
to
selected 5739
Obtained from FreeBSD:
It is possible for bpf to return a length such that:
length != BPF_WORDALIGN(length)
This meeans that it is possible for this to be true:
interface->rbuf_offset > interface->rbuf_len
Handle this case in the test for running out of packets. While
OpenBSD's solution of setting interface->rbuf_len to
BPF_WORDALIGN(length) is safe due to the size of the buffer, I think
this solution results in less hidden assumptions.
This should fix the problem of dhclient running away and consuming 100%
CPU.
PR: bin/102226
Submitted by: Joost Bekkers <joost at jodocus.org>
Revision
409 -
Directory Listing
-
[select for diffs]
Modified
Thu Dec 28 01:24:38 2006 UTC
(17 years, 5 months ago)
by
laffer1
Diff to
previous 408
,
to
selected 5739
Sync with FreeBSD RELENG_6_2.
Reparent the process that executes the window= command from the ttys to the init. This prevents zombies from being accumulated.
Revision
3 -
Directory Listing
-
[select for diffs]
Added
Sat Feb 25 02:29:52 2006 UTC
(18 years, 3 months ago)
by
laffer1
Diff
to
selected 5739
This commit was generated by cvs2svn to compensate for changes in r2, which
included commits to RCS files with non-trunk default branches.