mlelstv
7974872552
Three changes in a single commit.
...
- drop the notion of frags (LFS fragments) vs fsb (FFS fragments)
The code uses a complicated unity function that just makes the
code difficult to understand.
- support larger sector sizes. Fix disk address computations
to use DEV_BSIZE in the kernel as required by device drivers
and to use sector sizes in userland.
- Fix several locking bugs in lfs_bio.c and lfs_subr.c.
2010-02-16 23:20:30 +00:00
plunky
f5c86c146d
use
...
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
rather than
.if ${HAVE_GCC} == 4
as HAVE_GCC may be undefined
2010-02-08 07:56:06 +00:00
christos
c68c36a514
Centralize time printing and deal with ctime possibly returning NULL.
2010-02-04 23:55:42 +00:00
roy
98eb889579
Userland now builds and uses terminfo instead of termcap.
...
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
mlelstv
0aef69272b
Skip handling of APPLEUFS_LABEL if it is smaller than a device block.
...
In particular:
- newfs will not try to erase the label
- fsck_ffs will not try to validate the label
This lets newfs and fsck work on 2048-byte-per-sector media.
Does Apple UFS support such media and how?
2010-01-31 16:04:34 +00:00
is
c41a4b460e
Use getnameinfo() for printing AppleTalk addresses. While here, fix
...
printing of broadcast for this address family (AT broadcast is fixed
node 255 on the local net).
2010-01-30 18:30:33 +00:00
drochner
821d4396bd
follow KS_GROUP_Ascii->KS_GROUP_Plain rename in kernel,
...
noticed by Andreas Gustafsson
2010-01-29 09:49:34 +00:00
christos
13a5940614
use warn/err appropriately.
2010-01-27 18:34:02 +00:00
pooka
03fdf6b025
error message: \n\n -> \n
2010-01-27 17:02:06 +00:00
spz
1cb24f3feb
range-check what we assign to int cachebufs from calculations with
...
uint64_t usermem. This only becomes relevant if you have several TB of RAM.
Promoting cachebufs to uint64_t is not necessary as it gets limited to
(currently) 512 anyway.
fixes the last issue of PR: 19852
2010-01-27 12:20:25 +00:00
wiz
e08d841a54
+ Fatal errors due to uninitialized components are ignored.
...
for -C. For dillo@
2010-01-27 09:26:16 +00:00
wiz
4421a69224
Consistently use "START disks" in examples. Bump date.
2010-01-27 08:56:08 +00:00
is
000fbf6b41
Add AF_APPLETALK support to getnameinfo(); make "route show" use it.
...
Doesn't print "ranges" yet (should it be done here?); only numeric
output.
2010-01-26 21:27:54 +00:00
jakllsch
ce12229e40
Add display of Long Physical Sector and Long Logical Sectors feature set
...
information to atactl identify output.
Also:
- remove caddr_t cast
- warn about invalid IDENTIFY data checksum (when possible)
- humanize capacity in power-of-10 format
- remove semi-pointless ATAPI check
- slightly rework command queue depth output to be less conversational
2010-01-25 01:24:11 +00:00
dyoung
6abb73d262
Compare a pointer with NULL instead of testing its "truth."
2010-01-22 23:50:07 +00:00
pooka
0552fc0a0c
from main with return 0;
...
(Why did I manage to succesfully build n times, including a full
distribution build, without tripping this before ?!?)
2010-01-14 22:06:54 +00:00
pooka
ce626609cc
Remove puffs| from vfstype before making comparison to determine if
...
fs is mounted.
Fixes slightly-miscategorized kern/37626.
2010-01-14 21:46:24 +00:00
pooka
707f1f2b92
If getargs and vfs has PUFFS_TYPEPREFIX, use mount_puffs to query args.
2010-01-14 21:30:17 +00:00
pooka
335e5fc6dc
Descend into mount_puffs.
2010-01-14 21:29:26 +00:00
pooka
0f16a0e5f3
Add a generic puffs kernel utility for querying mount arguments.
...
E.g.:
golem> dtfs -r 'chr 15 25' dtfs /puffs
golem> mount_puffs -o getargs dtfs /puffs
version=26, flags=0x10, root cookie=0xbb90c0c0, root type=VCHR, root size=0, root rdev=0xf19
2010-01-14 21:25:48 +00:00
christos
808212fb9d
missing errno.h
2010-01-07 04:21:28 +00:00
christos
36cd9355e9
make this compile again.
2010-01-07 01:39:56 +00:00
christos
87e82597b6
PR/42568: Pedro F. Giffuni: Better signal handling from OpenBSD, but simplified.
2010-01-06 18:12:37 +00:00
tsutsui
d3724ba41f
Add necessary byteswap ops for tools disklabel(8) used with -F option
...
(treating a target disk as a regular file and suppressing ioctl(2)s)
on reading/writing disklabel in a target file.
This allows cross build enviroment creating bootable disk images
for targets in different endian.
No functional changes to native (non-tools) disklabel(8) command.
Closes PR toolchain/42357.
2010-01-05 15:45:26 +00:00
elad
34edb026e5
Keep an internal variable indicating whether securelevel is present, and
...
don't blindly try to get/set it. Prevents error messages that don't make
sense if securelevel isn't supported by the kernel.
2009-12-29 17:07:17 +00:00
dsl
5281921f56
Add info for -A ptn_alignment[/ptn_0_offset]
2009-12-23 20:56:18 +00:00
dsl
4d8b353d15
Put #endif in correct place - fixes PR/42500
...
Update usage() for -A, and rename one of the variables for clarity.
2009-12-23 18:50:40 +00:00
mbalmer
c84c875a15
Bump date.
2009-12-23 09:18:48 +00:00
mbalmer
8a65aabe5b
Fix typo in command output.
2009-12-23 09:13:21 +00:00
dsl
9193c05dda
Add support for partition being aligned on non-cylinder boundaries.
...
Info can be specified with -A parameter.
Default is based on how the first partition is defined.
For empty disks larger than 128GB (arbitrary figure) use 1MB alignment.
2009-12-22 21:55:12 +00:00
dsl
5cb32d7a27
Editing partitions larger than 1TB works better if 'decimal' returns
...
64 bit integer values!
2009-12-22 21:04:37 +00:00
pooka
c23e4f05d3
Don't -I from $S/sys.
2009-12-22 17:50:22 +00:00
dsl
795733c59e
Add a large comment about disk geometries.
...
Rename (with #defines) the variables use for aligning partitions to
separate them from the bios geometry.
All in advance of allowing other partition alignments (eg 2048 sectors).
2009-12-20 17:32:09 +00:00
dsl
e9c65c5007
Push the mount path for mount_mfs through realpath().
...
This matches what other fs do.
Fixes PR/20362
2009-12-20 15:21:13 +00:00
pooka
0f5249be8d
Use CMSG_SPACE() for buffer when receiving file descriptors.
...
Doesn't break i386 and might be better for sparc64.
2009-12-19 16:01:25 +00:00
pooka
eb2ef0c632
Use RUMP_ACTION to avoid having to specify the same information
...
in the Makefiles of all the consumers.
2009-12-19 15:03:34 +00:00
pooka
3d1523b600
Use implicit -F for regular files, much like disklabel(8).
2009-12-17 14:27:49 +00:00
nakayama
1c54a66d99
System utilities, boot programs and kernel modules are machine
...
(port) specific not CPU, so use MACHINE not MACHINE_ARCH.
2009-12-13 05:01:32 +00:00
jld
9bd6e2661a
Slight change to the wording of the parity map info: the parity is
...
"marked clean" after however much inactivity; it is *actually* clean
as soon as the component disks all do their thing (on the order of ms,
usually), just the same as before.
The bikeshed is now less of a taupe and more of an ecru.
2009-12-10 20:20:59 +00:00
pooka
a9b5fcccfc
Note conversion to puffs for the kernel driver.
2009-12-05 20:34:28 +00:00
pooka
3b4bfde519
use puffs_cookie_t. no functional change.
2009-12-05 20:29:19 +00:00
pooka
8dec10527a
Remove the portalfs kernel file system driver. Replace mount_portal(8)
...
with a version based on puffs. User functionality remains the same.
(missed new file in change batch)
2009-12-05 20:25:32 +00:00
pooka
70d4493c77
Remove the portalfs kernel file system driver. Replace mount_portal(8)
...
with a version based on puffs. User functionality remains the same.
2009-12-05 20:11:01 +00:00
pooka
d6224f4507
Remove support for NetBSD/playstation2.
2009-12-05 16:29:10 +00:00
pooka
bc6c058985
Add note saying that special must be a raw device.
...
PR bin/42391
2009-12-01 10:56:33 +00:00
pooka
3cf07ff872
Remove vinum-removal sentence fragment, similarly to newfs(8).
2009-12-01 08:47:25 +00:00
pooka
56a6edc13a
Use getprogname() instead of hardcoding "mount_nfs" to get the
...
right info in rump_nfs.
2009-11-30 17:17:55 +00:00
tsutsui
1baf5ea42e
Add a bunch of useful typical examples. Also use appropriate markup there.
2009-11-29 04:19:55 +00:00
tsutsui
1735ad7d34
Update -u usage to follow changes in fdisk.c rev 1.125:
...
>> Allow MB, GB and CYL (not just M, G and C) and lower case.
>> Don't output a splurious 'd' before "cyl".
>> Fixes PR/37414.
XXX "NNcy" is also allowed?
2009-11-28 17:25:45 +00:00
tsutsui
d5fb21858d
Clarify description of -f and -u options.
...
(-u means updating partition data, not interactive mode)
2009-11-28 16:45:20 +00:00