Go to file
chs f298a94b73 ufs: fixed signed/unsigned bugs affecting large file systems
Apply these commits from FreeBSD:

  commit e870d1e6f97cc73308c11c40684b775bcfa906a2
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Wed Feb 10 20:10:35 2010 +0000

    This fix corrects a problem in the file system that treats large
    inode numbers as negative rather than unsigned. For a default
    (16K block) file system, this bug began to show up at a file system
    size above about 16Tb.

    To fully handle this problem, newfs must be updated to ensure that
    it will never create a filesystem with more than 2^32 inodes. That
    patch will be forthcoming soon.

    Reported by: Scott Burns, John Kilburg, Bruce Evans
    Followup by: Jeff Roberson
    PR:          133980
    MFC after:   2 weeks

  commit 81479e688b0f643ffacd3f335b4b4bba460b769d
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Thu Feb 11 18:14:53 2010 +0000

    One last pass to get all the unsigned comparisons correct.


In additional to the changes from FreeBSD, this commit includes quite a few
related changes to appease -Wsign-compare.
2023-01-07 19:41:29 +00:00
bin More markup errors. \+ was intended to be \&+ and .EV .Ev of course. 2022-12-20 17:51:54 +00:00
common Fix some comments 2022-12-03 11:34:38 +00:00
compat fix various typos in comments and log messages. 2022-05-29 10:47:39 +00:00
crypto Correct lost change in the merge (Anthony Mallet) 2022-12-01 22:57:37 +00:00
dist/pf Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889. 2021-07-24 21:31:31 +00:00
distrib Turn on -z separate-code for x86, like linux has done. This splits the text 2023-01-06 15:47:38 +00:00
doc Mention igpio(4) update. 2023-01-07 15:00:04 +00:00
etc fix hexprint function 2022-12-28 19:23:02 +00:00
external we don't copy ldscripts for i386 (why though?) 2023-01-06 17:06:33 +00:00
games Define yes as extern veriable to fix build 2023-01-06 19:02:02 +00:00
include scandir(3) and alphasort(3) are part of POSIX-2008, so don't require 2022-12-28 11:51:21 +00:00
lib Add errc() and verrc() to the list of functions which do not return, 2023-01-05 15:13:57 +00:00
libexec Remove the limitation of only being able to load binaries with 2 PT_LOAD 2023-01-06 15:33:47 +00:00
regress fix various typos, mainly in comments, but also log messages, docs, game text. 2022-04-08 10:17:52 +00:00
rescue remove threads; size constraints and behavioral change 2022-05-16 14:55:56 +00:00
sbin ufs: fixed signed/unsigned bugs affecting large file systems 2023-01-07 19:41:29 +00:00
share igpio.4: Update list of supported devices. 2023-01-07 13:56:21 +00:00
sys ufs: fixed signed/unsigned bugs affecting large file systems 2023-01-07 19:41:29 +00:00
tests tests/lint: remove obsolete comments 2023-01-04 06:04:07 +00:00
tools fix the binutils build with read-only source trees 2022-12-31 05:44:25 +00:00
usr.bin PR/57166: John Dundas: Correct error code byte order in error message 2023-01-06 17:18:56 +00:00
usr.sbin ufs: fixed signed/unsigned bugs affecting large file systems 2023-01-07 19:41:29 +00:00
BUILDING fix documentation for MKLINT 2022-10-01 08:55:45 +00:00
Makefile Deprecate extsrc/, EXTSRCSRCDIR, MKEXTSRC 2022-08-21 07:10:03 +00:00
Makefile.inc
README.md README: use https for man.NetBSD.org 2021-09-05 12:45:44 +00:00
UPDATING Restore backward compatibility of UFS2 with previous NetBSD releases by 2022-11-17 06:40:38 +00:00
build.sh build.sh: usage improvements 2022-08-21 07:57:50 +00:00

README.md

NetBSD

NetBSD is a free, fast, secure, and highly portable Unix-like Open Source operating system. It is available for a wide range of platforms, from large-scale servers and powerful desktop systems to handheld and embedded devices.

Building

You can cross-build NetBSD from most UNIX-like operating systems. To build for amd64 (x86_64), in the src directory:

./build.sh -U -u -j4 -m amd64 -O ~/obj release

Additional build information available in the BUILDING file.

Binaries

Testing

On a running NetBSD system:

cd /usr/tests; atf-run | atf-report

Troubleshooting

Latest sources

To fetch the main CVS repository:

cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P src

To work in the Git mirror, which is updated every few hours from CVS:

git clone https://github.com/NetBSD/src.git