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

2020-10-05 Thread Chuck Silvers
Author: chs Date: Mon Oct 5 18:17:50 2020 New Revision: 366453 URL: https://svnweb.freebsd.org/changeset/base/366453 Log: ufs: restore uniqueness of st_dev as returned by ufs_stat() switch ufs_stat() to use the same value for st_dev as was used by the previous ufs_getattr() stat path.

svn commit: r365351 - head/sys/kern

2020-09-04 Thread Chuck Silvers
Author: chs Date: Sat Sep 5 00:26:03 2020 New Revision: 365351 URL: https://svnweb.freebsd.org/changeset/base/365351 Log: vfs: avoid exposing partially constructed vnodes If multiple threads race calling vfs_hash_insert() while creating vnodes with the same identity, all of the vnodes

svn commit: r365056 - head/sbin/fsck_ffs

2020-09-01 Thread Chuck Silvers
Author: chs Date: Tue Sep 1 18:50:26 2020 New Revision: 365056 URL: https://svnweb.freebsd.org/changeset/base/365056 Log: Move all of the error prints in readsb() from stderr to stdout. The only output from fsck that should go to stderr is the usage message. if setup() fails then exit with

svn commit: r363377 - head/tests/sys/kern

2020-07-20 Thread Chuck Silvers
Author: chs Date: Mon Jul 20 20:36:32 2020 New Revision: 363377 URL: https://svnweb.freebsd.org/changeset/base/363377 Log: add a few tests for sendfile. Reviewed by: markj Sponsored by: Netflix Differential Revision:https://reviews.freebsd.org/D25431 Added:

svn commit: r363296 - head/sys/vm

2020-07-17 Thread Chuck Silvers
Author: chs Date: Fri Jul 17 23:10:35 2020 New Revision: 363296 URL: https://svnweb.freebsd.org/changeset/base/363296 Log: Fix vnode_pager handling of read ahead/behind pages when a disk read fails. Rather than marking the read ahead/behind pages valid even though they were not initialized,

svn commit: r363295 - head/sys/vm

2020-07-17 Thread Chuck Silvers
Author: chs Date: Fri Jul 17 23:09:36 2020 New Revision: 363295 URL: https://svnweb.freebsd.org/changeset/base/363295 Log: Add a new function vm_page_free_invalid() for freeing invalid pages that might be wired. If the page is wired then it cannot be freed now, but the thread that

svn commit: r363294 - head/sys/vm

2020-07-17 Thread Chuck Silvers
Author: chs Date: Fri Jul 17 23:08:01 2020 New Revision: 363294 URL: https://svnweb.freebsd.org/changeset/base/363294 Log: Revert my change from r361855 in favor of a better fix. Reviewed by: markj, kib Sponsored by: Netflix Differential Revision:

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

2020-06-17 Thread Chuck Silvers
Author: chs Date: Wed Jun 17 23:39:52 2020 New Revision: 362292 URL: https://svnweb.freebsd.org/changeset/base/362292 Log: Move all of the functions in ffs_subr.c that are only used by the ufs kernel module from that file into ffs_vfsops.c. This fixes the build for kernel configs that

svn commit: r361855 - head/sys/vm

2020-06-05 Thread Chuck Silvers
Author: chs Date: Sat Jun 6 00:47:59 2020 New Revision: 361855 URL: https://svnweb.freebsd.org/changeset/base/361855 Log: Don't mark pages as valid if reading the contents from disk fails. Instead, just skip marking pages valid if the read fails. Future attempts to access such pages will

svn commit: r361852 - head/sys/kern

2020-06-05 Thread Chuck Silvers
Author: chs Date: Sat Jun 6 00:02:50 2020 New Revision: 361852 URL: https://svnweb.freebsd.org/changeset/base/361852 Log: Fix hang due to missing unbusy in sendfile when an async data I/O fails. r359473 removed the page unbusy logic from sendfile_iodone() because when

svn commit: r361491 - in head/sys: geom kern sys ufs/ffs ufs/ufs

2020-05-25 Thread Chuck Silvers
Author: chs Date: Mon May 25 23:47:31 2020 New Revision: 361491 URL: https://svnweb.freebsd.org/changeset/base/361491 Log: This commit enables a UFS filesystem to do a forcible unmount when the underlying media fails or becomes inaccessible. For example when a USB flash memory card hosting

svn commit: r360559 - head/sbin/dumpfs

2020-05-01 Thread Chuck Silvers
Author: chs Date: Sat May 2 00:10:25 2020 New Revision: 360559 URL: https://svnweb.freebsd.org/changeset/base/360559 Log: Print the fs last-mounted time too. Reviewed by: mckusick Approved by: mckusick (mentor) Sponsored by: Netflix Modified: head/sbin/dumpfs/dumpfs.c Modified:

Re: svn commit: r358597 - head/sys/kern

2020-03-15 Thread Chuck Silvers
On Fri, Mar 13, 2020 at 07:48:17PM -0400, Mark Johnston wrote: > On Wed, Mar 04, 2020 at 12:22:51AM +0000, Chuck Silvers wrote: > > Author: chs > > Date: Wed Mar 4 00:22:50 2020 > > New Revision: 358597 > > URL: https://svnweb.freebsd.org/changes

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

2020-03-09 Thread Chuck Silvers
Author: chs Date: Mon Mar 9 15:55:13 2020 New Revision: 358812 URL: https://svnweb.freebsd.org/changeset/base/358812 Log: Use the devfs vnode rather than the mntfs vnode for permissions checks. I missed this one in r358714. Reported by: pho Reviewed by: mckusick Approved by: imp

svn commit: r358714 - in head/sys: conf fs/mntfs kern sys ufs/ffs ufs/ufs

2020-03-06 Thread Chuck Silvers
Author: chs Date: Fri Mar 6 18:41:37 2020 New Revision: 358714 URL: https://svnweb.freebsd.org/changeset/base/358714 Log: Add a new "mntfs" pseudo file system which provides private device vnodes for file systems to safely access their disk devices, and adapt FFS to use it. Also add a new

svn commit: r358597 - head/sys/kern

2020-03-03 Thread Chuck Silvers
Author: chs Date: Wed Mar 4 00:22:50 2020 New Revision: 358597 URL: https://svnweb.freebsd.org/changeset/base/358597 Log: if vm_pager_get_pages_async() returns an error, release the sfio->nios refcount that we took earlier that represents the I/O that ended up not being started.

svn commit: r358058 - head/sys/amd64/amd64

2020-02-17 Thread Chuck Silvers
Author: chs Date: Tue Feb 18 00:02:20 2020 New Revision: 358058 URL: https://svnweb.freebsd.org/changeset/base/358058 Log: amd64: keep PTE bitmasks in sync with target pmap during pv reclaim in reclaim_pv_chunk_domain(), when we switch to a new target pmap from which we are trying to

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

2020-02-03 Thread Chuck Silvers
Author: chs Date: Mon Feb 3 17:47:14 2020 New Revision: 357456 URL: https://svnweb.freebsd.org/changeset/base/357456 Log: With INVARIANTS, track all softdep dependency structures centrally so that we can find them in dumps. Approved by: mckusick (mentor) Sponsored by: Netflix

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

2019-11-27 Thread Chuck Silvers
Author: chs Date: Thu Nov 28 00:37:43 2019 New Revision: 355150 URL: https://svnweb.freebsd.org/changeset/base/355150 Log: As part of creating a snapshot, set fs->fs_fmod to 0 in the snapshot image because nothing ever changes this field for read-only mounts and we want to verify that it is

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

2019-11-25 Thread Chuck Silvers
Author: chs Date: Mon Nov 25 19:31:38 2019 New Revision: 355098 URL: https://svnweb.freebsd.org/changeset/base/355098 Log: In ffs_freefile(), use a separate variable to hold the inode number within the cg rather than reusuing "ino" for this purpose. This reduces the diff for an upcoming

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

2019-11-11 Thread Chuck Silvers
Author: chs Date: Tue Nov 12 00:32:33 2019 New Revision: 354632 URL: https://svnweb.freebsd.org/changeset/base/354632 Log: In ufs_dir_dd_ino(), always initialize *dd_vp since the caller expects it. Reviewed by: kib, mckusick Approved by: imp (mentor) Sponsored by: Netflix Modified:

svn commit: r353668 - head/sys/geom/nop

2019-10-16 Thread Chuck Silvers
Author: chs Date: Wed Oct 16 21:49:44 2019 New Revision: 353668 URL: https://svnweb.freebsd.org/changeset/base/353668 Log: Make all the gnop parameters optional in the request from userland, filling in the same defaults that the current userland module uses. This allows an old geom_nop.so

svn commit: r353667 - head/sys/geom

2019-10-16 Thread Chuck Silvers
Author: chs Date: Wed Oct 16 21:49:39 2019 New Revision: 353667 URL: https://svnweb.freebsd.org/changeset/base/353667 Log: Add a new gctl_get_paraml_opt() interface to extract optional parameters from the request. It is the same as gctl_get_paraml() except that the request is not marked

Re: svn commit: r352312 - in head: lib/geom/nop sys/geom/nop

2019-10-02 Thread Chuck Silvers
On Wed, Oct 02, 2019 at 08:11:57AM -0600, Alan Somers wrote: > On Fri, Sep 13, 2019 at 5:04 PM Chuck Silvers wrote: > > > Author: chs > > Date: Fri Sep 13 23:03:56 2019 > > New Revision: 352312 > > URL: https://svnweb.freebsd.org/changeset/base/352312 > > &g

svn commit: r352312 - in head: lib/geom/nop sys/geom/nop

2019-09-13 Thread Chuck Silvers
Author: chs Date: Fri Sep 13 23:03:56 2019 New Revision: 352312 URL: https://svnweb.freebsd.org/changeset/base/352312 Log: Add a "count_until_fail" option to gnop, which says to start failing I/O requests after the given number have been allowed though. Approved by:imp (mentor)