svn commit: r368773 - head/sbin/fsck_ffs

2020-12-18 Thread Kirk McKusick
Author: mckusick Date: Fri Dec 18 23:28:27 2020 New Revision: 368773 URL: https://svnweb.freebsd.org/changeset/base/368773 Log: Rename pass4check() to freeblock() and move from pass4.c to inode.c. The new name more accurately describes what it does and the file move puts it with other simila

svn commit: r368494 - in stable/12/sys: fs/ext2fs ufs/ufs

2020-12-09 Thread Kirk McKusick
Author: mckusick Date: Wed Dec 9 22:37:23 2020 New Revision: 368494 URL: https://svnweb.freebsd.org/changeset/base/368494 Log: MFC of 368396 and 368425. Document BA_CLRBUF flag. Sponsored by: Netflix Modified: stable/12/sys/fs/ext2fs/ext2_extern.h stable/12/sys/ufs/ufs/ufs_extern

svn commit: r368425 - head/sys/fs/ext2fs

2020-12-07 Thread Kirk McKusick
Author: mckusick Date: Tue Dec 8 00:49:31 2020 New Revision: 368425 URL: https://svnweb.freebsd.org/changeset/base/368425 Log: In ext2fs, BA_CLRBUF is used in ext2_balloc() not UFS_BALLOC(). Noted by: kib MFC after:3 days Sponsored by: Netflix Modified: head/sys/fs/ext2fs/ex

svn commit: r368396 - in head/sys: fs/ext2fs ufs/ufs

2020-12-06 Thread Kirk McKusick
Author: mckusick Date: Sun Dec 6 20:50:21 2020 New Revision: 368396 URL: https://svnweb.freebsd.org/changeset/base/368396 Log: Document the BA_CLRBUF flag used in ufs and ext2fs filesystems. Suggested by: kib MFC after:3 days Sponsored by: Netflix Modified: head/sys/fs/ext2fs/ex

svn commit: r367911 - head/sys/kern

2020-11-20 Thread Kirk McKusick
Author: mckusick Date: Fri Nov 20 20:22:01 2020 New Revision: 367911 URL: https://svnweb.freebsd.org/changeset/base/367911 Log: Only attempt a VOP_UNLOCK() when the vn_lock() has been successful. No MFC as this code is not present in 12-stable. Reported by: Peter Holm Reviewed by:

svn commit: r367751 - stable/12/sbin/fsck_ffs

2020-11-16 Thread Kirk McKusick
Author: mckusick Date: Tue Nov 17 06:04:16 2020 New Revision: 367751 URL: https://svnweb.freebsd.org/changeset/base/367751 Log: MFC of 367045. Avoid improper sign extension in Pass5 inumber checks. Sponsored by: Netflix Modified: stable/12/sbin/fsck_ffs/pass5.c Directory Properties:

svn commit: r367750 - in stable/12/sbin: fsirand growfs tunefs

2020-11-16 Thread Kirk McKusick
Author: mckusick Date: Tue Nov 17 05:59:55 2020 New Revision: 367750 URL: https://svnweb.freebsd.org/changeset/base/367750 Log: MFC of 367035. Require clean superblock for tunefs, growfs, and fsirand Sponsored by: Netflix Modified: stable/12/sbin/fsirand/fsirand.c stable/12/sbin/g

svn commit: r367749 - stable/12/sys/ufs/ffs

2020-11-16 Thread Kirk McKusick
Author: mckusick Date: Tue Nov 17 05:48:00 2020 New Revision: 367749 URL: https://svnweb.freebsd.org/changeset/base/367749 Log: MFC of 340927 and 367034. Move clear of UFS feature flags from ufs_mountfs() to ffs_sbget() to ensure that the appropriate feature flags get cleared by filesyste

svn commit: r367045 - head/sbin/fsck_ffs

2020-10-25 Thread Kirk McKusick
Author: mckusick Date: Sun Oct 25 21:04:07 2020 New Revision: 367045 URL: https://svnweb.freebsd.org/changeset/base/367045 Log: Use proper type (ino_t) for inode numbers to avoid improper sign extention in the Pass 5 checks. The manifestation was fsck_ffs exiting with this error: ** Pha

svn commit: r367035 - in head/sbin: fsirand growfs tunefs

2020-10-24 Thread Kirk McKusick
Author: mckusick Date: Sun Oct 25 01:36:33 2020 New Revision: 367035 URL: https://svnweb.freebsd.org/changeset/base/367035 Log: Filesystem utilities that modify the filesystem (growfs(8), tunefs(8), and fsirand(8)) should check the filesystem status and require that fsck(8) be run if it is u

svn commit: r367034 - in head: sbin/fsck_ffs sys/ufs/ffs

2020-10-24 Thread Kirk McKusick
Author: mckusick Date: Sun Oct 25 00:43:48 2020 New Revision: 367034 URL: https://svnweb.freebsd.org/changeset/base/367034 Log: Various new check-hash checks have been added to the UFS filesystem over various major releases. Superblock check hashes were added for the 12 release and cylinder-

svn commit: r366187 - releng/12.2/sbin/growfs

2020-09-26 Thread Kirk McKusick
Author: mckusick Date: Sat Sep 26 21:45:33 2020 New Revision: 366187 URL: https://svnweb.freebsd.org/changeset/base/366187 Log: MFS of 366163 from stable/12 which is MFC of 365992 from head. Update check-hash when doing large UFS filesystem expansions. Approved by: re@ (Glen Barber)

svn commit: r366163 - stable/12/sbin/growfs

2020-09-25 Thread Kirk McKusick
Author: mckusick Date: Fri Sep 25 17:14:35 2020 New Revision: 366163 URL: https://svnweb.freebsd.org/changeset/base/366163 Log: MFC of 365992 Update check-hash when doing large filesystem expansions. Sponsored by: Netflix Modified: stable/12/sbin/growfs/growfs.c Modified: stable/12

svn commit: r365992 - head/sbin/growfs

2020-09-21 Thread Kirk McKusick
Author: mckusick Date: Tue Sep 22 03:57:48 2020 New Revision: 365992 URL: https://svnweb.freebsd.org/changeset/base/365992 Log: Add missing cylinder group check-hash updates when doing large expansions of filesystems. Reported by: Colin Percival (cperciva@) Tested by:Colin Percival

svn commit: r365971 - stable/12/sbin/newfs

2020-09-21 Thread Kirk McKusick
Author: mckusick Date: Mon Sep 21 19:25:41 2020 New Revision: 365971 URL: https://svnweb.freebsd.org/changeset/base/365971 Log: MFC of 365700 Switch to more appropriate libufs interfaces in newfs. Sponsored by: Netflix Modified: stable/12/sbin/newfs/mkfs.c Directory Properties: st

svn commit: r365919 - in head: lib/libufs sbin/fsck_ffs

2020-09-19 Thread Kirk McKusick
ylinder group write function that is safe to use @@ -172,3 +180,4 @@ in .Fx 5.1 . .Sh AUTHORS .An Juli Mallett Aq Mt jmall...@freebsd.org +.An Marshall Kirk McKusick Aq Mt mckus...@freebsd.org Modified: head/lib/libufs/cgroup.c

svn commit: r365912 - in head: sbin/fsdb tools/diag/prtblknos

2020-09-19 Thread Kirk McKusick
Author: mckusick Date: Sat Sep 19 20:06:12 2020 New Revision: 365912 URL: https://svnweb.freebsd.org/changeset/base/365912 Log: The fsdb(8) utility uses the fsck_ffs(8) disk I/O interfaces, so switch from using libufs's bread() to using fsck_ffs's getdatablk() when importing tools/diag/prtbl

svn commit: r365700 - head/sbin/newfs

2020-09-13 Thread Kirk McKusick
Author: mckusick Date: Sun Sep 13 22:57:50 2020 New Revision: 365700 URL: https://svnweb.freebsd.org/changeset/base/365700 Log: In the newfs(8) utility, use the more appropriate sbwrite() and cgwrite() libufs interfaces rather than sbput() and cgput(). No functional change. MFC after

svn commit: r364983 - stable/12/sys/kern

2020-08-30 Thread Kirk McKusick
Author: mckusick Date: Mon Aug 31 05:25:13 2020 New Revision: 364983 URL: https://svnweb.freebsd.org/changeset/base/364983 Log: MFC of 364895 Comment on when and why pathnames are deleted from the name cache. Modified: stable/12/sys/kern/vfs_lookup.c Directory Properties: stable/12/

svn commit: r364895 - head/sys/kern

2020-08-27 Thread Kirk McKusick
Author: mckusick Date: Thu Aug 27 22:14:58 2020 New Revision: 364895 URL: https://svnweb.freebsd.org/changeset/base/364895 Log: Add a comment to clarify when and why cached names are deleted during pathname lookup. Reviewed by: kib MFC after:3 days Sponsored by: Netflix Modified

svn commit: r364262 - head/sbin/fsck_ffs

2020-08-15 Thread Kirk McKusick
Author: mckusick Date: Sat Aug 15 21:40:36 2020 New Revision: 364262 URL: https://svnweb.freebsd.org/changeset/base/364262 Log: Use the sbput() function to write alternate superblocks so that they get a checkhash. PR: 246983 Sponsored by: Netflix Modified: head/sbin/fsck_ff

svn commit: r363405 - in stable/12: bin/ps sys/sys

2020-07-21 Thread Kirk McKusick
Author: mckusick Date: Tue Jul 21 23:23:08 2020 New Revision: 363405 URL: https://svnweb.freebsd.org/changeset/base/363405 Log: MFC of 362369 (by Lorenzo Salvadore) and 363192 Refinement of /bin/ps rtprio output Modified: stable/12/bin/ps/print.c stable/12/bin/ps/ps.1 stable/12/sys/s

svn commit: r363192 - in head: bin/ps sys/sys

2020-07-14 Thread Kirk McKusick
Author: mckusick Date: Tue Jul 14 18:57:31 2020 New Revision: 363192 URL: https://svnweb.freebsd.org/changeset/base/363192 Log: Update to D25266, bin/ps: Make the rtprio option actually show realtime priorities The current `ps -axO rtprio' show threads running at interrupt priority such

svn commit: r363056 - stable/12/lib/libufs

2020-07-09 Thread Kirk McKusick
Author: mckusick Date: Thu Jul 9 19:11:57 2020 New Revision: 363056 URL: https://svnweb.freebsd.org/changeset/base/363056 Log: MFC of 362560 Correctly describe libufs library sbget() and sbput() return values. Modified: stable/12/lib/libufs/sbread.3 Directory Properties: stable/12/

svn commit: r362561 - head/sys/geom/journal

2020-06-23 Thread Kirk McKusick
Author: mckusick Date: Tue Jun 23 21:44:00 2020 New Revision: 362561 URL: https://svnweb.freebsd.org/changeset/base/362561 Log: Optimize g_journal's superblock update by noting that the summary information is neither read nor written so it need not be written out when updating the superblock

svn commit: r362560 - head/lib/libufs

2020-06-23 Thread Kirk McKusick
Author: mckusick Date: Tue Jun 23 21:37:12 2020 New Revision: 362560 URL: https://svnweb.freebsd.org/changeset/base/362560 Log: Correctly describe the return values for the libufs library sbget() and sbput() functions that respectively read and write the superblock. PR: 247425

svn commit: r362559 - in head: lib/libufs sbin/fsck_ffs

2020-06-23 Thread Kirk McKusick
Author: mckusick Date: Tue Jun 23 21:28:26 2020 New Revision: 362559 URL: https://svnweb.freebsd.org/changeset/base/362559 Log: The libufs library needs to track and free the new fs_si structure in addition to the fs_csp structure that it references. PR: 247425 Sponsored by: N

svn commit: r362558 - head/lib/libufs

2020-06-23 Thread Kirk McKusick
Author: mckusick Date: Tue Jun 23 21:17:13 2020 New Revision: 362558 URL: https://svnweb.freebsd.org/changeset/base/362558 Log: Align comments in struct uufsd structure. No semantic change. Sponsored by: Netflix Modified: head/lib/libufs/libufs.h Modified: head/lib/libufs/libufs.h =

svn commit: r362418 - head/usr.sbin/makefs/ffs

2020-06-19 Thread Kirk McKusick
Author: mckusick Date: Fri Jun 19 23:32:40 2020 New Revision: 362418 URL: https://svnweb.freebsd.org/changeset/base/362418 Log: Allocate an fs_summary_info structure when creating a UFS filesystem needed since introduced in -r362358. PR: 247425 Sponsored by: Netflix Modified:

svn commit: r362359 - head/sys/ufs/ffs

2020-06-18 Thread Kirk McKusick
Author: mckusick Date: Fri Jun 19 01:04:25 2020 New Revision: 362359 URL: https://svnweb.freebsd.org/changeset/base/362359 Log: The binary representation of the superblock (the fs structure) is written out verbatim to the disk: see ffs_sbput() in sys/ufs/ffs/ffs_subr.c. It contains a pointer

svn commit: r362358 - in head: sbin/newfs stand/libsa sys/geom/journal sys/geom/label sys/ufs/ffs usr.sbin/fstyp usr.sbin/quot

2020-06-18 Thread Kirk McKusick
Author: mckusick Date: Fri Jun 19 01:02:53 2020 New Revision: 362358 URL: https://svnweb.freebsd.org/changeset/base/362358 Log: Move the pointers stored in the superblock into a separate fs_summary_info structure. This change was originally done by the CheriBSD project as they need larger po

svn commit: r361875 - head/sys/ufs/ffs

2020-06-06 Thread Kirk McKusick
Author: mckusick Date: Sat Jun 6 20:17:56 2020 New Revision: 361875 URL: https://svnweb.freebsd.org/changeset/base/361875 Log: Clear the IN_SIZEMOD and IN_IBLKDATA flags only when doing a synchronous inode update. The IN_SIZEMOD and IN_IBLKDATA flags indicate changes to the file size a

svn commit: r361814 - in head/sys/ufs: ffs ufs

2020-06-04 Thread Kirk McKusick
Author: mckusick Date: Fri Jun 5 01:00:55 2020 New Revision: 361814 URL: https://svnweb.freebsd.org/changeset/base/361814 Log: Further evaluation of the POSIX spec for fdatasync() shows that it requires that new data on growing files be accessible. Thus, the the fsyncdata() system call must

svn commit: r361801 - head/sys/ufs/ffs

2020-06-04 Thread Kirk McKusick
Author: mckusick Date: Thu Jun 4 18:35:21 2020 New Revision: 361801 URL: https://svnweb.freebsd.org/changeset/base/361801 Log: Two additional places that need to identify IN_IBLKDATA. Reviewed by: kib MFC with: -r361785 Differential Revision: https://reviews.freebsd.org/D25072 Modifi

svn commit: r360835 - in stable/12/usr.bin: factor primes

2020-05-08 Thread Kirk McKusick
Author: mckusick Date: Sat May 9 05:04:02 2020 New Revision: 360835 URL: https://svnweb.freebsd.org/changeset/base/360835 Log: MFC of 35 Fix the way 'factor' behaves when using OpenSSL to match the description of how it works when not compiled with OpenSSL. Modified: stable/12/usr

svn commit: r359946 - in stable/12: include/protocols sbin/dump sbin/restore

2020-04-14 Thread Kirk McKusick
Author: mckusick Date: Wed Apr 15 00:18:19 2020 New Revision: 359946 URL: https://svnweb.freebsd.org/changeset/base/359946 Log: MFC of 359627 Update dump and restore to compile with -fno-common. Modified: stable/12/include/protocols/dumprestore.h stable/12/sbin/dump/dump.h stable/12/

svn commit: r359790 - head/sbin/fsck_ffs

2020-04-10 Thread Kirk McKusick
Author: mckusick Date: Fri Apr 10 23:58:07 2020 New Revision: 359790 URL: https://svnweb.freebsd.org/changeset/base/359790 Log: Inode check-hash errors were being reported after system crashes. Trace the cause down to journalled soft updates recovery code in fsck failing to recompute the che

svn commit: r359789 - head/sbin/fsck_ffs

2020-04-10 Thread Kirk McKusick
Author: mckusick Date: Fri Apr 10 23:49:34 2020 New Revision: 359789 URL: https://svnweb.freebsd.org/changeset/base/359789 Log: Add an inode check-hash verification when running the journalled soft update recovery code with the debugging (-d) option. As inode check-hash was first introduc

svn commit: r359760 - head/sys/ufs/ffs

2020-04-09 Thread Kirk McKusick
Author: mckusick Date: Thu Apr 9 23:51:18 2020 New Revision: 359760 URL: https://svnweb.freebsd.org/changeset/base/359760 Log: Fixing the soft update macros in -r359612 triggered a previously hidden bug in the file truncation code. Until that bug is tracked down and fixed, revert to the old

svn commit: r359759 - head/sys/kern

2020-04-09 Thread Kirk McKusick
Author: mckusick Date: Thu Apr 9 23:42:13 2020 New Revision: 359759 URL: https://svnweb.freebsd.org/changeset/base/359759 Log: When running with a kernel compiled with DEBUG_LOCKS, before panic'ing for recusing on a non-recursive lock, print out the kernel stack where the lock was originall

svn commit: r359738 - stable/11/sys/ufs/ufs

2020-04-08 Thread Kirk McKusick
Author: mckusick Date: Thu Apr 9 06:35:50 2020 New Revision: 359738 URL: https://svnweb.freebsd.org/changeset/base/359738 Log: Revert MFC of 359612 due to reported problems. Modified: stable/11/sys/ufs/ufs/inode.h Modified: stable/11/sys/ufs/ufs/inode.h =

svn commit: r359737 - stable/12/sys/ufs/ufs

2020-04-08 Thread Kirk McKusick
Author: mckusick Date: Thu Apr 9 06:32:51 2020 New Revision: 359737 URL: https://svnweb.freebsd.org/changeset/base/359737 Log: Revert MFC of 359612 due to reported problems. Modified: stable/12/sys/ufs/ufs/inode.h Modified: stable/12/sys/ufs/ufs/inode.h =

svn commit: r359670 - stable/11/sys/ufs/ufs

2020-04-06 Thread Kirk McKusick
Author: mckusick Date: Mon Apr 6 22:14:50 2020 New Revision: 359670 URL: https://svnweb.freebsd.org/changeset/base/359670 Log: MFC of 359612 Use proper boolean expressions for soft update macros. Sponsored by: Netflix Modified: stable/11/sys/ufs/ufs/inode.h Directory Properties:

svn commit: r359669 - stable/12/sys/ufs/ufs

2020-04-06 Thread Kirk McKusick
Author: mckusick Date: Mon Apr 6 22:12:42 2020 New Revision: 359669 URL: https://svnweb.freebsd.org/changeset/base/359669 Log: MFC of 359612 Use proper boolean expressions for soft update macros. Sponsored by: Netflix Modified: stable/12/sys/ufs/ufs/inode.h Directory Properties:

svn commit: r359668 - head/sys/ufs/ffs

2020-04-06 Thread Kirk McKusick
Author: mckusick Date: Mon Apr 6 20:23:47 2020 New Revision: 359668 URL: https://svnweb.freebsd.org/changeset/base/359668 Log: Revert -r359612 as it can cause other panics. An updated version will be made when the issue has been resolved. Reported by: Peter Holm Modified: head/sys/ufs

svn commit: r359627 - in head: include/protocols sbin/dump sbin/restore

2020-04-03 Thread Kirk McKusick
Author: mckusick Date: Sat Apr 4 00:56:56 2020 New Revision: 359627 URL: https://svnweb.freebsd.org/changeset/base/359627 Log: Clean up global variable declarations in the dump and restore utilities so that they will compile with -fno-common. Started by: Kyle Evans (kevans) Reviewed b

svn commit: r359613 - head/sys/ufs/ffs

2020-04-03 Thread Kirk McKusick
Author: mckusick Date: Fri Apr 3 20:43:25 2020 New Revision: 359613 URL: https://svnweb.freebsd.org/changeset/base/359613 Log: When shrinking the size of a directory it is sometimes necessary to sync it to disk before shrinking it. Complete the sync before getting the buffer for the block t

svn commit: r359612 - head/sys/ufs/ufs

2020-04-03 Thread Kirk McKusick
Author: mckusick Date: Fri Apr 3 20:30:45 2020 New Revision: 359612 URL: https://svnweb.freebsd.org/changeset/base/359612 Log: Convert DOINGSOFTDEP, MOUNTEDSOFTDEP, DOINGSUJ, and MOUNTEDSUJ to being boolean expressions so that their values are not lost when assigned to `bool' or `int' varia

svn commit: r358899 - in head: lib/libc/sys sys/ufs/ffs

2020-03-11 Thread Kirk McKusick
Author: mckusick Date: Wed Mar 11 21:00:40 2020 New Revision: 358899 URL: https://svnweb.freebsd.org/changeset/base/358899 Log: When mounting a UFS filesystem, return EINTEGRITY rather than EIO when a superblock check-hash error is detected. This change clarifies a mount that failed due to m

svn commit: r358085 - head/sys/ufs/ffs

2020-02-18 Thread Kirk McKusick
Author: mckusick Date: Tue Feb 18 23:56:23 2020 New Revision: 358085 URL: https://svnweb.freebsd.org/changeset/base/358085 Log: Additional KASSERTs to ensure the consistency of the soft updates indirdep structure. No functional change. Tested by:Peter Holm (as part of a larger patch)

svn commit: r357034 - stable/11/sys/ufs/ffs

2020-01-22 Thread Kirk McKusick
Author: mckusick Date: Thu Jan 23 06:24:11 2020 New Revision: 357034 URL: https://svnweb.freebsd.org/changeset/base/357034 Log: MFC of 356714 Fix DIRCHG panic Modified: stable/11/sys/ufs/ffs/ffs_softdep.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/ufs/f

svn commit: r357033 - stable/12/sys/ufs/ffs

2020-01-22 Thread Kirk McKusick
Author: mckusick Date: Thu Jan 23 06:20:57 2020 New Revision: 357033 URL: https://svnweb.freebsd.org/changeset/base/357033 Log: MFC of 356714 Fix DIRCHG panic Modified: stable/12/sys/ufs/ffs/ffs_softdep.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/ufs/f

svn commit: r357032 - stable/11/sys/kern

2020-01-22 Thread Kirk McKusick
Author: mckusick Date: Thu Jan 23 06:18:08 2020 New Revision: 357032 URL: https://svnweb.freebsd.org/changeset/base/357032 Log: MFC of 356763 Remove call to VFS_SYNC() to avoid unmount livelock Modified: stable/11/sys/kern/vfs_mount.c Directory Properties: stable/11/ (props changed)

svn commit: r357031 - stable/12/sys/kern

2020-01-22 Thread Kirk McKusick
Author: mckusick Date: Thu Jan 23 06:11:25 2020 New Revision: 357031 URL: https://svnweb.freebsd.org/changeset/base/357031 Log: MFC of 356763 Remove call to VFS_SYNC() to avoid unmount livelock Modified: stable/12/sys/kern/vfs_mount.c Directory Properties: stable/12/ (props changed)

svn commit: r357030 - stable/11/sys/ufs/ffs

2020-01-22 Thread Kirk McKusick
Author: mckusick Date: Thu Jan 23 06:06:32 2020 New Revision: 357030 URL: https://svnweb.freebsd.org/changeset/base/357030 Log: MFC of 356739 Optimize quota sync'ing Modified: stable/11/sys/ufs/ffs/ffs_vfsops.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys

svn commit: r357029 - stable/12/sys/ufs/ffs

2020-01-22 Thread Kirk McKusick
Author: mckusick Date: Thu Jan 23 06:02:52 2020 New Revision: 357029 URL: https://svnweb.freebsd.org/changeset/base/357029 Log: MFC of 356739 Optimize quota sync'ing Modified: stable/12/sys/ufs/ffs/ffs_vfsops.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys

svn commit: r356965 - stable/11/sys/ufs/ufs

2020-01-21 Thread Kirk McKusick
Author: mckusick Date: Wed Jan 22 01:31:02 2020 New Revision: 356965 URL: https://svnweb.freebsd.org/changeset/base/356965 Log: MFC of 356627 Reset link counts after directory update failures Modified: stable/11/sys/ufs/ufs/ufs_lookup.c Directory Properties: stable/11/ (props changed

svn commit: r356964 - stable/12/sys/ufs/ufs

2020-01-21 Thread Kirk McKusick
Author: mckusick Date: Wed Jan 22 01:28:37 2020 New Revision: 356964 URL: https://svnweb.freebsd.org/changeset/base/356964 Log: MFC of 356627 Reset link counts after directory update failures Modified: stable/12/sys/ufs/ufs/ufs_lookup.c Directory Properties: stable/12/ (props changed

svn commit: r356763 - head/sys/kern

2020-01-15 Thread Kirk McKusick
Author: mckusick Date: Wed Jan 15 18:53:32 2020 New Revision: 356763 URL: https://svnweb.freebsd.org/changeset/base/356763 Log: Peter Holm reports that his test that does an umount(8) on an active mount point while numerous tests are running that are writing to files on that mount point caus

svn commit: r356739 - head/sys/ufs/ffs

2020-01-14 Thread Kirk McKusick
Author: mckusick Date: Tue Jan 14 22:27:46 2020 New Revision: 356739 URL: https://svnweb.freebsd.org/changeset/base/356739 Log: When sync'ing a mount point, the mount point's vnodes were scanned twice. Once to update the changed inodes, and a second time to update changed quota information.

svn commit: r356627 - head/sys/ufs/ufs

2020-01-10 Thread Kirk McKusick
Author: mckusick Date: Sat Jan 11 03:18:47 2020 New Revision: 356627 URL: https://svnweb.freebsd.org/changeset/base/356627 Log: When a read error occurs while fetching a directory block to delete or rename an entry in it, properly reset the link count of the inode associated with the entry t

svn commit: r356428 - stable/11/sbin/fsck_ffs

2020-01-06 Thread Kirk McKusick
Author: mckusick Date: Mon Jan 6 21:23:14 2020 New Revision: 356428 URL: https://svnweb.freebsd.org/changeset/base/356428 Log: MFC of 356063 Do not ask to use journal in fsck_ffs if journal is out of date Modified: stable/11/sbin/fsck_ffs/main.c stable/11/sbin/fsck_ffs/suj.c Directory

svn commit: r356427 - stable/12/sbin/fsck_ffs

2020-01-06 Thread Kirk McKusick
Author: mckusick Date: Mon Jan 6 21:14:27 2020 New Revision: 356427 URL: https://svnweb.freebsd.org/changeset/base/356427 Log: MFC of 356063 Do not ask to use journal in fsck_ffs if journal is out of date Modified: stable/12/sbin/fsck_ffs/main.c stable/12/sbin/fsck_ffs/suj.c Directory

svn commit: r356067 - stable/12/sbin/hastd

2019-12-24 Thread Kirk McKusick
Author: mckusick Date: Wed Dec 25 05:00:50 2019 New Revision: 356067 URL: https://svnweb.freebsd.org/changeset/base/356067 Log: MFC of 355995 Fix manual page typo. Modified: stable/12/sbin/hastd/hastd.8 Directory Properties: stable/12/ (props changed) Modified: stable/12/sbin/hastd/

svn commit: r356063 - head/sbin/fsck_ffs

2019-12-24 Thread Kirk McKusick
Author: mckusick Date: Tue Dec 24 23:03:12 2019 New Revision: 356063 URL: https://svnweb.freebsd.org/changeset/base/356063 Log: When running fsck_ffs manually, do not ask: USE JOURNAL? [yn] when the journal timestamp does not match the filesystem mount time as we are just going

svn commit: r355995 - head/sbin/hastd

2019-12-21 Thread Kirk McKusick
Author: mckusick Date: Sun Dec 22 01:22:51 2019 New Revision: 355995 URL: https://svnweb.freebsd.org/changeset/base/355995 Log: Fix typo in hastd.8 manual page. Reported by: Steve Kargl MFC after: 3 days Modified: head/sbin/hastd/hastd.8 Modified: head/sbin/hastd/hastd.8 ==

svn commit: r355371 - in head/sys: kern sys ufs/ffs

2019-12-03 Thread Kirk McKusick
Author: mckusick Date: Tue Dec 3 23:07:09 2019 New Revision: 355371 URL: https://svnweb.freebsd.org/changeset/base/355371 Log: Currently the breadn_flags() and getblkx() interfaces are passed the vnode, logical block number, and size of data block that is being requested. They then use the

svn commit: r354873 - head/sys/sys

2019-11-19 Thread Kirk McKusick
Author: mckusick Date: Wed Nov 20 01:14:22 2019 New Revision: 354873 URL: https://svnweb.freebsd.org/changeset/base/354873 Log: White space cleanup. No functional change. Sponsored by: Netflix Modified: head/sys/sys/buf.h Modified: head/sys/sys/buf.h

svn commit: r354872 - head/sys/ufs/ffs

2019-11-19 Thread Kirk McKusick
Author: mckusick Date: Wed Nov 20 01:10:01 2019 New Revision: 354872 URL: https://svnweb.freebsd.org/changeset/base/354872 Log: Add some KASSERTs. Reacquire a mutex after a kernel printf rather than holding it during the printf. White space cleanup. Sponsored by: Netflix Modified: head

svn commit: r354125 - stable/11/sys/ufs/ufs

2019-10-26 Thread Kirk McKusick
Author: mckusick Date: Sun Oct 27 04:10:49 2019 New Revision: 354125 URL: https://svnweb.freebsd.org/changeset/base/354125 Log: MFC of 354050 Ensure that ctime update is visible immediately Modified: stable/11/sys/ufs/ufs/ufs_lookup.c Directory Properties: stable/11/ (props changed)

svn commit: r354124 - stable/12/sys/ufs/ufs

2019-10-26 Thread Kirk McKusick
Author: mckusick Date: Sun Oct 27 04:09:24 2019 New Revision: 354124 URL: https://svnweb.freebsd.org/changeset/base/354124 Log: MFC of 354050 Ensure that ctime update is visible immediately Modified: stable/12/sys/ufs/ufs/ufs_lookup.c Directory Properties: stable/12/ (props changed)

svn commit: r354122 - stable/12/sbin/fsck_ffs

2019-10-26 Thread Kirk McKusick
Author: mckusick Date: Sun Oct 27 03:46:00 2019 New Revision: 354122 URL: https://svnweb.freebsd.org/changeset/base/354122 Log: MFC of 353903 Fix uninitialized variable in SUJ recovery. Modified: stable/12/sbin/fsck_ffs/suj.c Directory Properties: stable/12/ (props changed) Modified

svn commit: r354123 - stable/11/sbin/fsck_ffs

2019-10-26 Thread Kirk McKusick
Author: mckusick Date: Sun Oct 27 03:47:16 2019 New Revision: 354123 URL: https://svnweb.freebsd.org/changeset/base/354123 Log: MFC of 353903 Fix uninitialized variable in SUJ recovery. Modified: stable/11/sbin/fsck_ffs/suj.c Directory Properties: stable/11/ (props changed) Modified

svn commit: r354050 - head/sys/ufs/ufs

2019-10-24 Thread Kirk McKusick
Author: mckusick Date: Thu Oct 24 21:28:37 2019 New Revision: 354050 URL: https://svnweb.freebsd.org/changeset/base/354050 Log: After the unlink() of one name of a file with multiple links, a stat() of one of the remaining names of the file does not show an updated ctime (inode modification

svn commit: r354036 - head/sys/ufs/ffs

2019-10-24 Thread Kirk McKusick
Author: mckusick Date: Thu Oct 24 19:47:18 2019 New Revision: 354036 URL: https://svnweb.freebsd.org/changeset/base/354036 Log: Soft updates needs to keep an on-disk linked list of inodes that have been unlinked, but are still referenced by open file descriptors. These inodes cannot be freed

svn commit: r353903 - head/sbin/fsck_ffs

2019-10-22 Thread Kirk McKusick
Author: mckusick Date: Tue Oct 22 22:23:59 2019 New Revision: 353903 URL: https://svnweb.freebsd.org/changeset/base/353903 Log: Replace an uninitialized variable with the correct element from the superblock when doing recovery with journalled soft updates. Reported by: Chuck Silvers MF

svn commit: r353099 - in head/sys/ufs: ffs ufs

2019-10-03 Thread Kirk McKusick
Author: mckusick Date: Fri Oct 4 05:28:36 2019 New Revision: 353099 URL: https://svnweb.freebsd.org/changeset/base/353099 Log: Update ffs_getcg() function to accept a flags parameter to be passed to breadn_flags() in preparation for later need when doing forcible unmount when disk dies or i

svn commit: r352947 - stable/11/sys/kern

2019-10-01 Thread Kirk McKusick
Author: mckusick Date: Tue Oct 1 23:28:22 2019 New Revision: 352947 URL: https://svnweb.freebsd.org/changeset/base/352947 Log: MFC of 352453 Check bread_gb() return value in cluster_collectbufs() code. Modified: stable/11/sys/kern/vfs_cluster.c Directory Properties: stable/11/ (prop

svn commit: r352946 - stable/12/sys/kern

2019-10-01 Thread Kirk McKusick
Author: mckusick Date: Tue Oct 1 23:26:52 2019 New Revision: 352946 URL: https://svnweb.freebsd.org/changeset/base/352946 Log: MFC of 352453 Check bread_gb() return value in cluster_collectbufs() code. Modified: stable/12/sys/kern/vfs_cluster.c Directory Properties: stable/12/ (prop

svn commit: r352453 - head/sys/kern

2019-09-17 Thread Kirk McKusick
Author: mckusick Date: Tue Sep 17 17:44:50 2019 New Revision: 352453 URL: https://svnweb.freebsd.org/changeset/base/352453 Log: The VFS-level clustering code collects together sequential blocks by issuing delayed-writes (bdwrite()) until a non-sequential block is written or the maximum clust

svn commit: r346221 - stable/12/sys/dev/md

2019-09-03 Thread Kirk McKusick
Author: mckusick Date: Mon Apr 15 12:07:41 2019 New Revision: 346221 URL: https://svnweb.freebsd.org/changeset/base/346221 Log: MFC of 345758 Properly flush outstanding I/Os when forcibly deleteing a memory disk device. Sponsored by: Netflix Modified: stable/12/sys/dev/md/md.c Direc

svn commit: r346185 - head/sbin/fsck_ffs

2019-09-03 Thread Kirk McKusick
Author: mckusick Date: Sat Apr 13 13:31:06 2019 New Revision: 346185 URL: https://svnweb.freebsd.org/changeset/base/346185 Log: Followup to -r344552 in which fsck_ffs checks for a size past the last allocated block of the file and if that is found, shortens the file to reference the last all

svn commit: r346222 - stable/11/sys/dev/md

2019-09-03 Thread Kirk McKusick
Author: mckusick Date: Mon Apr 15 12:09:58 2019 New Revision: 346222 URL: https://svnweb.freebsd.org/changeset/base/346222 Log: MFC of 345758 Properly flush outstanding I/Os when forcibly deleteing a memory disk device. Sponsored by: Netflix Modified: stable/11/sys/dev/md/md.c Direc

svn commit: r345758 - head/sys/dev/md

2019-09-03 Thread Kirk McKusick
Author: mckusick Date: Sun Mar 31 21:34:58 2019 New Revision: 345758 URL: https://svnweb.freebsd.org/changeset/base/345758 Log: When using the force option to shut down a memory-disk device, I/O operations already in its queue were not being properly drained. The GEOM framework does the queu

svn commit: r345666 - in stable/12/sys: kern ufs/ffs

2019-09-03 Thread Kirk McKusick
Author: mckusick Date: Fri Mar 29 01:15:37 2019 New Revision: 345666 URL: https://svnweb.freebsd.org/changeset/base/345666 Log: MFC of 343536, 345077, and 345352 Collectively fixing ffs_truncate3 and dangling dependencies panics when using ACLs. Sponsored by: Netflix Modified: sta

svn commit: r345667 - in stable/11/sys: kern ufs/ffs

2019-09-03 Thread Kirk McKusick
Author: mckusick Date: Fri Mar 29 01:16:38 2019 New Revision: 345667 URL: https://svnweb.freebsd.org/changeset/base/345667 Log: MFC of 343536, 345077, and 345352 Collectively fixing ffs_truncate3 and dangling dependencies panics when using ACLs. Sponsored by: Netflix Modified: sta

svn commit: r351164 - stable/12/sys/ufs/ffs

2019-08-16 Thread Kirk McKusick
Author: mckusick Date: Sat Aug 17 06:06:50 2019 New Revision: 351164 URL: https://svnweb.freebsd.org/changeset/base/351164 Log: MFC of 351002 Clarify how FS_METACKHASH flag is managed. Modified: stable/12/sys/ufs/ffs/fs.h Directory Properties: stable/12/ (props changed) Modified: st

svn commit: r351098 - head/usr.bin/calendar/calendars

2019-08-15 Thread Kirk McKusick
Author: mckusick Date: Thu Aug 15 18:46:27 2019 New Revision: 351098 URL: https://svnweb.freebsd.org/changeset/base/351098 Log: Add missing comma in calendar.freebsd Modified: head/usr.bin/calendar/calendars/calendar.freebsd Modified: head/usr.bin/calendar/calendars/calendar.freebsd

svn commit: r351002 - head/sys/ufs/ffs

2019-08-13 Thread Kirk McKusick
Author: mckusick Date: Tue Aug 13 20:56:44 2019 New Revision: 351002 URL: https://svnweb.freebsd.org/changeset/base/351002 Log: Clarify comment that describes how the FS_METACKHASH is managed. MFC after: 3 days Modified: head/sys/ufs/ffs/fs.h Modified: head/sys/ufs/ffs/fs.h

svn commit: r350852 - in stable/11/sbin: fsck_ffs newfs

2019-08-10 Thread Kirk McKusick
Author: mckusick Date: Sat Aug 10 23:08:35 2019 New Revision: 350852 URL: https://svnweb.freebsd.org/changeset/base/350852 Log: MFC of 350682 Correct first superblock backup location in fsck_ffs.8. Modified: stable/11/sbin/fsck_ffs/fsck_ffs.8 stable/11/sbin/newfs/newfs.8 Directory Prop

svn commit: r350851 - in stable/12/sbin: fsck_ffs newfs

2019-08-10 Thread Kirk McKusick
Author: mckusick Date: Sat Aug 10 23:06:52 2019 New Revision: 350851 URL: https://svnweb.freebsd.org/changeset/base/350851 Log: MFC of 350682 Correct first superblock backup location in fsck_ffs.8. Modified: stable/12/sbin/fsck_ffs/fsck_ffs.8 stable/12/sbin/newfs/newfs.8 Directory Prop

svn commit: r350850 - in stable/12/sys/ufs: ffs ufs

2019-08-10 Thread Kirk McKusick
Author: mckusick Date: Sat Aug 10 23:03:23 2019 New Revision: 350850 URL: https://svnweb.freebsd.org/changeset/base/350850 Log: MFC of 350490 Set FORCE in chk[id]q when returning inodes and blocks. Modified: stable/12/sys/ufs/ffs/ffs_inode.c stable/12/sys/ufs/ffs/ffs_softdep.c stable

svn commit: r350682 - in head/sbin: fsck_ffs newfs

2019-08-07 Thread Kirk McKusick
Author: mckusick Date: Wed Aug 7 16:56:00 2019 New Revision: 350682 URL: https://svnweb.freebsd.org/changeset/base/350682 Log: Correct the location of the first backup superblock in fsck_ffs.8. Make a note in the newfs.8 manual page to update the first backup superblock location when changi

svn commit: r350653 - head/sys/geom/label

2019-08-06 Thread Kirk McKusick
Author: mckusick Date: Tue Aug 6 18:28:44 2019 New Revision: 350653 URL: https://svnweb.freebsd.org/changeset/base/350653 Log: Ignore UFS/FFS superblock check hash failures so as to allow a higher level in the filesystem stack to decide what to do about them. Reported by: Peter Holm T

svn commit: r350651 - head/sys/ufs/ffs

2019-08-06 Thread Kirk McKusick
Author: mckusick Date: Tue Aug 6 18:10:34 2019 New Revision: 350651 URL: https://svnweb.freebsd.org/changeset/base/350651 Log: A race condition existed between the time a UFS/FFS superblock check hash was computed and the time that the superblock was copied to a buffer to be written to disk

svn commit: r350490 - in head/sys/ufs: ffs ufs

2019-07-31 Thread Kirk McKusick
Author: mckusick Date: Wed Jul 31 22:44:58 2019 New Revision: 350490 URL: https://svnweb.freebsd.org/changeset/base/350490 Log: When updating the user or group disk quotas for the return of inodes or disk blocks, set the FORCE flag in the call to chkiq() or chkdq() since the user is always a

svn commit: r350460 - in stable/12: sbin/fsck_ffs sbin/mount sys/sys sys/ufs/ffs sys/ufs/ufs

2019-07-30 Thread Kirk McKusick
Author: mckusick Date: Wed Jul 31 00:16:12 2019 New Revision: 350460 URL: https://svnweb.freebsd.org/changeset/base/350460 Log: MFC of 349589, 350070, 350071, 350096, and 350187 Make filesystem-full messages limited per filesystem rather than systemwide Add "untrusted" option to mount com

svn commit: r350459 - stable/11/sbin/dump

2019-07-30 Thread Kirk McKusick
Author: mckusick Date: Tue Jul 30 23:50:49 2019 New Revision: 350459 URL: https://svnweb.freebsd.org/changeset/base/350459 Log: MFC of 349032 Clarify -r and -R only usable for level 0 dumps. Modified: stable/11/sbin/dump/dump.8 Directory Properties: stable/11/ (props changed) Modifi

svn commit: r350187 - head/sbin/fsck_ffs

2019-07-20 Thread Kirk McKusick
Author: mckusick Date: Sat Jul 20 21:39:32 2019 New Revision: 350187 URL: https://svnweb.freebsd.org/changeset/base/350187 Log: Treat any inode with bad content as unknown (i.e., ask if it should be cleared). Sponsored by: Netflix Modified: head/sbin/fsck_ffs/pass1.c Modified: head/sb

svn commit: r350186 - head/sbin/fsck_ffs

2019-07-20 Thread Kirk McKusick
Author: mckusick Date: Sat Jul 20 21:20:40 2019 New Revision: 350186 URL: https://svnweb.freebsd.org/changeset/base/350186 Log: When running with journaled soft updates, some updated inodes were not having their check hashes recomputed which resulted in spurious inode check-hash errors when

  1   2   3   4   5   6   >