Commit Graph

6658 Commits

Author SHA1 Message Date
sevan d11b992e7c shutdown appeared as a standalone utility in 4.2BSD release, in 4BSD its a
target in init.
http://www.tuhs.org/cgi-bin/utree.pl?file=4BSD/usr/src/cmd/init.c
http://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/etc/shutdown.c

Amend HISTORY.
Bump date.
2016-09-12 06:22:35 +00:00
sevan 08e27e9733 Replace contractions. 2016-09-12 05:47:21 +00:00
sevan 1bfbbe603d A standalone reboot utility showed up in 4.0BSD.
In AT&T UNIX init has a case for reboot and is present in the version shipped
with V5.
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V5/usr/source/s1/init.c

Amend HISTORY section.
Bump date.
2016-09-12 05:43:15 +00:00
sevan 9edbcb7169 pppoectl first appeared in NetBSD 1.6.
Bump date.
2016-09-12 05:35:20 +00:00
sevan d9f234e208 Mention author in AUTHORS section.
Bump date.
2016-09-12 05:23:32 +00:00
sevan d298703f11 Document newfs_v7fs appeared in NetBSD 6.0.
Add AUTHORS secton.
Bump date.
2016-09-12 05:16:04 +00:00
sevan 6933519a81 Add AUTHORS section.
Bump date.
2016-09-12 05:11:53 +00:00
sevan 1137c8dc70 Note the origin of the newfs_msdos command from FreeBSD 3.0.
Replace contraction.
s/filesystem/file system/
Bump date.
2016-09-12 05:09:39 +00:00
sevan 65286eb532 Memory File System support appeared in 4.4BSD, implemented as an extension to
newfs(8). So while newfs may have appeared in 4.2BSD, MFS support was later.
https://svnweb.freebsd.org/csrg/sbin/newfs/Makefile?r1=39047&r2=39051
Adjust HISTORY.
Bump date.
2016-09-12 04:50:48 +00:00
sevan 4a946ec4b7 modstat initially lived in src/usr.bin/modstat before being moved to src/modstat.
Note the history of the initial implementation and amend AUTHORS section to
credit Terrence R. Lambert.
Heads up by Matthew Green.
2016-09-12 04:00:27 +00:00
sevan dbcb8388b0 Add HISTORY & AUTHORS section.
Bump date.
2016-09-12 02:57:09 +00:00
sevan 013f37ee9c Add HISTORY & AUTHORS section.
Bump date.
2016-09-12 02:45:07 +00:00
sevan aa2167a3c8 Add AUTHORS section.
Bump date.
2016-09-12 02:38:31 +00:00
sevan f61b6f043e Add HISTORY section.
Bump date.
Not sure where mount_nfs first showed up but the version in the moder BSDs originates
from 4.4BSD according to CSRG archive
http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.4BSD/usr/src/sbin/mount_nfs
Commercial offerings from Sun and others covers older systems, eg
https://groups.google.com/forum/#!topic/net.unix-wizards/lMe7aQikqJI
2016-09-12 02:06:16 +00:00
sevan 20d2cbcc33 - mount_pcfs appeared in 386BSD
https://groups.google.com/forum/#!search/mount_pcfs.c/comp.unix.bsd/9qhH0v1tZm0/inlPnXZj_2sJ
- Edit history to note name change version & rewrite.
- Add authors section.
- s/filesystem/file systems
- Bump date.
2016-09-12 01:44:52 +00:00
sevan 72f6bd0c05 Document the version mount_chfs appeared.
Add An macro to AUTHORS section.
Bump date.
2016-09-12 00:38:42 +00:00
sevan 7ebf29657a mount appeared in V1
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1/mount.1
Replace contraction.
Bump date.
2016-09-12 00:25:23 +00:00
sevan 441c8e3032 Document author and the version modunload appeared.
Bump date.
2016-09-12 00:19:29 +00:00
sevan b341d851d2 Document author and the version modstat appeared.
Bump date.
2016-09-12 00:15:14 +00:00
sevan ed434347cc Document the version modload appeared and authors.
Correct spelling mistakes.
Bump date.
2016-09-12 00:03:01 +00:00
sevan 5b2ff4948c Revert previous change, textproc/igor is not around from these parts here.
Heads up by maya@
2016-09-11 23:07:50 +00:00
sevan 0b16d51ea6 mknod appeared in V4
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V4/man/man8/mknod.8
Bump date.
2016-09-11 23:02:54 +00:00
sevan cc299105e5 no comma after "i.e.", raised by textproc/igor 2016-09-11 22:39:54 +00:00
sevan 480937e0df init first appeared in V1 UNIX
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/init.s
Replace contraction.
Bump date.
2016-09-11 22:22:57 +00:00
sevan 3ef31cfb4a Replace contractions & abbreviation. 2016-09-11 22:10:47 +00:00
sevan 994edde5c7 Document the version gpt first appeared.
Replace contractions.
Bump date.
2016-09-11 21:38:16 +00:00
sevan b778e96398 Document author and the version fsirand appeared.
Bump date.
2016-09-11 21:22:18 +00:00
wiz 7ca7a31b02 file system police. 2016-09-11 09:09:54 +00:00
sevan 9dd4fb3ad2 Document author and the version fsck_v7fs appeared.
Replace contraction.
Bump date.
2016-09-11 04:19:52 +00:00
sevan c6b9fd9601 Document the version fsck_msdos first appeared.
Bump date.
2016-09-11 04:12:08 +00:00
sevan 645829aa66 Document the version fsck_ffs first appeared.
Bump date.
2016-09-11 04:07:38 +00:00
sevan a7a41f50d0 Document the author and the version fsck_ext2fs first appeared.
Bump date.
2016-09-11 03:56:00 +00:00
sevan 2817e8b69c Document the version fsck first appeared.
Bump date.
2016-09-11 03:48:11 +00:00
sevan ef7ad9dc67 - Document the HISTORY of fdisk based on the original post to comp.unix.bsd by
Julian Elischer [1] and the Mach 2.5 Installation notes [2].
I was unable to pin point the exact version of Mach the fdisk utility appeared
as I didn't find documentation older than version 2.5 & no source code or repo
history. fdisk utility appears as a separate utility[3] in v2.5. Due to this,
I've avoided stating the exact version fdisk first appeared in Mach.
- Make correction pointed by textproc/igor
- Bump date

[1] https://groups.google.com/forum/#!searchin/comp.unix.bsd/14-Dec-89$20Robert$20Baron$20(rvb)$20at$20Carnegie-Mellon$20University%7Csort:relevance/comp.unix.bsd/Hhi45vAHxDg

[2] ftp://ftp.mcs.vuw.ac.nz/doc/misc/mach-i386-doc/i386_install.ps
[3] ftp://ftp.mcs.vuw.ac.nz/doc/misc/mach-i386-doc/i386_manpages.ps
2016-09-11 03:35:08 +00:00
sevan 260a67f942 Document the version drvctl appeard.
Reword bad sentence.
Remove space in License.
Bump date.
2016-09-11 02:59:11 +00:00
sevan 7f58cf589a dmesg first appeared in 3BSD
http://minnie.tuhs.org/cgi-bin/utree.pl?file=3BSD/usr/src/cmd/dmesg.c
Bump date.
2016-09-11 02:24:00 +00:00
sevan 386fba73ad Mention author in AUTHORS section.
Bump date.
2016-09-11 02:18:52 +00:00
sevan e2e783ad92 Remove ignored Pp macro, highlighted by mandoc -Tlint. 2016-09-11 02:10:31 +00:00
sevan a3477eb231 Grammar fix suggested by textproc/igor.
Syntax fix highlighted by mandoc -Tlint.
Bump date.
2016-09-11 01:59:10 +00:00
sevan a11e4d8d20 Document the version disklabel first appeared.
Fix spelling mistakes.
Replace contraction.
Bump date.
2016-09-11 01:48:00 +00:00
sevan 9eaf2a2b2a Document the version devpubd first appeared.
Bump date.
2016-09-11 01:38:00 +00:00
sevan 85d401802e Document the version clri first appeared.
Bump date.
2016-09-11 01:31:39 +00:00
sevan a6b62e7892 Document the version chown first appeared.
Replace contractions highlighted by textproc/igor.
Bump date.
2016-09-11 01:23:26 +00:00
sevan d2528dc7eb Spelling mistake.
Bump date.
2016-09-11 01:09:34 +00:00
sevan 38721343cf Note which version it appeared in before the rewrite.
Bump date.
2016-09-11 01:03:15 +00:00
sevan fb5a698902 Spelling mistake.
Bump date.
2016-09-11 00:52:39 +00:00
martin 9286e800c1 Add a bit of swapping for values in CG descriptors (used to be done
wholesale in e2fs_cgsave, but now common code keeps them in FS byte
order). Seems to fix newfs_ext2fs on big endian hosts.
2016-09-05 10:44:36 +00:00
sevan 51fe790c4c Drop main() prototype. 2016-09-05 01:00:07 +00:00
christos 99accdc793 PR/51440: Jose Luis Rodriguez Garcia: Use the standard queue.h macro instead
of playing with the TAILQ's entrails.
2016-08-25 07:43:18 +00:00
dholland fbf3696950 Fix handling of ffsv2 inode initialization. Retires PR 51116. 2016-08-24 07:44:05 +00:00
jdolecek 76043b45b1 report also gmtoff in the output of mount options 2016-08-21 22:27:20 +00:00
christos 4d4594470b PR/51422: Jose Luis Rodriguez Garcia: completely remove B_NEEDCOMMIT 2016-08-18 08:08:02 +00:00
christos e9843116de PR/51422: Jose Luis Rodriguez Garcia: Remove unnecessary assignment. 2016-08-18 08:04:28 +00:00
jdolecek a5764f7139 more informative debug output for unsupported features 2016-08-15 19:13:24 +00:00
jdolecek b720c3e2bb adjust inode size check to compare against EXT2_REV0_DINODE_SIZE, rather then sizeof(struct ext2fs_dinode), as the structure definition was expanded with the optional fields 2016-08-15 18:57:06 +00:00
jdolecek d2d8cddee2 divorce list of features supported by fsck_ext2fs from the kernel;
while kernel might support e.g. extents, extra_isize or dir_nlink,
fsck could actually have no idea about the features
2016-08-15 18:42:15 +00:00
mlelstv 43aac176e6 Avoid error message when /dev/wedges doesn't exist yet. 2016-08-15 12:54:40 +00:00
sevan 06495a3a2e dump was there from v4.
Confirmed from the TUHS hosted copies of man pages.
Bump date.
2016-08-15 00:03:14 +00:00
jdolecek 249e8f5f7e rename struct ext2fs_dinode attribute e2di_dacl to correct
e2di_size_high; even Linux ext2 filesystem code actually uses it
unconditionally this way and ext4 code finally also calls it that way
in their struct definition too; if there was any trace of this for other
purpose it's long gone
2016-08-04 17:43:47 +00:00
nonaka 95ec03a0f0 pass EXT2_DINODE_SIZE(&sblock) as isize to e2fs_isave(). 2016-08-04 03:01:38 +00:00
pgoyette 177830b6d7 Right-align numeric columns REFS and SIZE for easier viewing 2016-08-03 23:55:47 +00:00
dholland 05ce5c4223 Apply patch from PR 43587, mostly from martin and kre. When writing a
sysctl variable using ?= fails with EPERM, don't print an error
message.

Ideally setting a sysctl to the same value it already has should also
not fail regardless of permissions, but this would need to be done in
the kernel.
2016-07-31 23:30:28 +00:00
dholland ed2ef35eef PR 51264 Jose Luis Rodriguez Garcia: lfs userland bufcache rehash is broken 2016-07-31 18:27:26 +00:00
dholland fc8d0c1c35 Manipulate the signal masks so signals only arrive while we're waiting,
so they can't illegally reenter libc.

Fixes the problem Greg A. Woods describes in PR 51267, which might or
might not be the original submitter's problem.
2016-07-31 18:14:36 +00:00
dholland 52b3d9565c Don't call variables that are used "dummy". 2016-07-31 17:59:08 +00:00
martin f0b8f9c13b From Michael Plass:
The superblock field that distinguishes between 4.2BSD and 4.4BSD
inodes is really only relevant on a UFS1 file system. Make sure that
it is a UFS1 fs before using fs_old_inodefmt.

Note that the NetBSD newfs and mkfs utilities initialize fs_old_inodefmt
even for UFS2, so problems were apparent only on file systems created
by other operating systems, for example, FreeBSD.
2016-07-28 08:24:58 +00:00
erh 2b151ae574 Eliminate the distinct path check, since the paths don't actually need to be
distinct and allowing this makes certain useful tasks possible, such as
 fixing an unpopulated /dev while a tmpfs is mounted over it.
However, require the paths to be different, as mounting a path directly over
 itself has the side effect of causing any other mount points within that path
 to no longer be accessible, and is difficult to unmount when done on /.
2016-07-25 04:40:51 +00:00
nonaka 1c1d2c157d Fix RCS Id. 2016-07-14 10:02:43 +00:00
wiz 8c6f2a8da1 Bump date for previous. 2016-07-12 10:56:01 +00:00
zafer 4158ea49d0 improve description regarding symbolic links. ok @wiz. 2016-07-12 09:59:42 +00:00
christos 3a39bad1de cgdconfig does not need crypto. 2016-07-01 22:50:50 +00:00
christos 55b06df259 replace openssl HMAC(3) with our hmac(3). 2016-07-01 22:50:09 +00:00
dholland ece47fa390 Don't assume that getaddrinfo sets the result pointer to null when it
fails. (In fact it probably doesn't...)
2016-06-26 04:01:30 +00:00
dholland a4b908377f Document external unmount programs. PR 698. Bump date. 2016-06-26 03:59:11 +00:00
dholland 383d022f18 Fix previous to avoid using an uninitialized pointer when using -R (raw). 2016-06-26 03:51:28 +00:00
dholland 4cc121caa5 If an external unmount program of the form "umount_TYPE" exists
(e.g. umount_ffs, umount_nfs, etc.) exec it instead of calling
unmount(2).

Closes PR 698.

Note that the original plan for the PR also involved adding a generic
facility to store an alternate FS type name in the kernel to use when
unmounting. This was intended to support filesystems implemented as
loopback nfs servers, where the visible mount would be of type "nfs"
pointing at localhost; in that case one would want to be able to
provide an additional string in order to run an unmount program that
would both remove that mount and also shut down the loopback nfs
server daemon.

However, in the 21+ years since the PR was filed, loopback nfs servers
have gone out of favor (for good reasons) so I don't see any need to
worry about this case at present, especially since the PR has been
hanging around this long anyway. (If anyone still has a loopback nfs
server that they want to use a custom unmount program with, file a new
PR and assign it to me and I'll deal with it specifically in the nfs
mount args structure, which unmount already knows how to retrieve and
examine.)

It is my understanding that filesystems implemented with fuse (which
has displaced the loopback nfs server model) can already set the FS
type field so no further work is needed to allow them to use a custom
unmount program. If this is not the case, please let me know and I'll
attend to it.

There is no longer any need that I see to provide a general facility
for storing an alternate filesystem type name.

(One might also ask whether there's any real need for this
functionality at all any more; this is a fair question, but (a) the
change is small and (b) there are certainly cases when doing FS
research where you want a custom unmount program; been there & done
that.)
2016-06-26 03:40:39 +00:00
dholland 75cbf5e12c When SMALL, if realpath() fails, warn() using the failing path instead
of the buffer realpath has declined to write anything into.
2016-06-26 03:05:52 +00:00
jnemeth 93fd3c01ef - fix setting of hdr_lba_alt which was broken in revision 1.10 on 2015/12/2
- switch to using gpt_last
- PR/51230 -- recreate the PMBR if it was lost
2016-06-12 12:48:32 +00:00
christos b7b34325a9 Rename 'a' to set the active PMBR flag to 'A' 2016-06-09 19:04:43 +00:00
kre c2246a3f2c Make "gpt show" add an "(active)" annotation to the PMBR output line
when it has been marked active for legacy (non UEFI) booting.
This was (kind of obviously) intended by the previous commit, but...
2016-06-09 17:43:36 +00:00
kre 89194609b9 Fix rendering of biosboot command synopsis. 2016-06-09 16:48:14 +00:00
christos 3017a7a39f PR/51230: Add the ability to set the active flag in the PMBR. 2016-06-09 15:12:54 +00:00
wiz a6daee9b24 Try improving SYNOPSIS per my understanding of how this works.
Use more markup. Fix some markup.
2016-06-05 09:13:08 +00:00
joerg 0eed2a9437 Mark dead functions. 2016-06-04 20:59:49 +00:00
nonaka cae3c2f471 nvmectl(8): Added NVM Express control utility.
Ported from FreeBSD nvmecontrol(8).
2016-06-04 16:29:35 +00:00
wiz 6975094331 Sort SEE ALSO. New sentence, new line. Punctuation nits. Use Nx. 2016-06-01 12:01:21 +00:00
pgoyette 46d007f408 Improved documentation of mount_nilfs, from PR bin/46730 2016-06-01 11:56:49 +00:00
pgoyette 596954117f Minor formatting change in swapctl -l as noted in my PR bin/51155 2016-05-31 09:34:25 +00:00
dholland dea44b9dd8 PR 50756 David Binderman: avoid running off the end of an array in case
thing we're looking for isn't there. Which is probably impossible, but
that's not obvious.
2016-05-31 02:29:54 +00:00
joerg 1203c26a96 Add printf-like annotation. 2016-05-30 22:02:41 +00:00
mlelstv 44b25f2fac mark noreturn function exit_daemon() as __dead 2016-05-30 21:58:32 +00:00
mlelstv 6fea88c26e Several improvents to iscsid
- debug log is now using syslog
- seperate options for log level and foreground mode
- writes a pidfile so that /etc/rc.d/iscsid works
  Now links with libutil for pidfile(), the functions login() and logout()
  needed to be renamed to avoid a conflict.
- drops the nothreads option
- handles signals to shut down gracefully
- the driver may also shut down the daemon when it terminates
  Currently this cannot work as the driver can only terminate when
  the daemon has closed the driver file handle.
2016-05-29 13:35:45 +00:00
mrg a3ddb94352 update the micron smart codes for 247/248 to match data i found in
micron's "TN-FD-33: M510DC SSD SMART Implementation Introduction"
document.

these two values can be used to calculate the write amplication
factor:

   WAF = ( A247 + A248 ) / A247
2016-05-10 08:08:59 +00:00
khorben 3df9a0e8ab More friendly error messages for modload(8) and modunload(8)
Tested on NetBSD/amd64.

From Christian Koch (cfkoch@) of EdgeBSD; thanks!
2016-05-06 00:24:45 +00:00
jakllsch 1dac11f22d The on-disk FAT array does not include anything before CLUST_FIRST,
compensate in size check.

This was tickled by my SanDisk Sansa Clip 4GB, which exactly filled the FAT array.
2016-05-02 17:33:03 +00:00
ozaki-r 09973b35ac Separate nexthop caches from the routing table
By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.

Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
  - sysctl(NET_RT_DUMP) doesn't return them
  - If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
  - RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
  - It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
  - -[no]cloning remains because it seems there are users
  - -[no]connected is introduced and recommended
    to be used instead of -[no]cloning
- route show/netstat -r drops some flags
  - 'L' and 'c' are not seen anymore
  - 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
  a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route

You can know details of behavior changes by seeing diffs under tests/.

Proposed on tech-net and tech-kern:
  http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html
2016-04-04 07:37:07 +00:00
mlelstv 4842a68f63 Use the same defaults for cluster sizes as Windows. 2016-04-03 11:00:13 +00:00
ryo ccc6dc924a no need to escape 2016-04-01 05:23:56 +00:00
christos f4ab1bba27 -O0 for pass1.c and vax 2016-03-23 21:43:33 +00:00
dholland 89579fda21 Comment out unused logic. PR 50973 2016-03-20 04:24:46 +00:00