From owner-svn-src-head@freebsd.org Wed Aug 19 17:10:14 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4DDED3C4D1C; Wed, 19 Aug 2020 17:10:14 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BWvRQ1LP0z4Hsr; Wed, 19 Aug 2020 17:10:09 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 85996261C8; Wed, 19 Aug 2020 17:10:09 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 07JHA9QB008819; Wed, 19 Aug 2020 17:10:09 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 07JHA9AY008818; Wed, 19 Aug 2020 17:10:09 GMT (envelope-from imp@FreeBSD.org) Message-Id: <202008191710.07JHA9AY008818@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Wed, 19 Aug 2020 17:10:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r364403 - head/sbin/devd X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/sbin/devd X-SVN-Commit-Revision: 364403 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2020 17:10:16 -0000 Author: imp Date: Wed Aug 19 17:10:09 2020 New Revision: 364403 URL: https://svnweb.freebsd.org/changeset/base/364403 Log: Document the VFS FS events MOUNT notifies when a filesystem is mounted REMOUNT notifies when a filesystem is mounted again UNMOUNT notifies when a filesystem is unmounted These events are asynchronous to the actual state of the event (though the data is recorded at a time when it is stable). The mount event is reported after the filesystem is mounted. However, in the interim it may be unmounted by another agent. Likewise, umount is called just before the mountpoint is finished tearing down. It may be remounted (or maybe if the process scheduling is wonky and devd gets to run before the last few steps are complete). Sponsored by: Netflix Diffential Revision: https://reviews.freebsd.org/D25969 Modified: head/sbin/devd/devd.conf.5 Modified: head/sbin/devd/devd.conf.5 ============================================================================== --- head/sbin/devd/devd.conf.5 Wed Aug 19 17:10:04 2020 (r364402) +++ head/sbin/devd/devd.conf.5 Wed Aug 19 17:10:09 2020 (r364403) @@ -573,6 +573,20 @@ USB interface is detached from a device. .Pp .Bl -column "System" "Subsystem" "1234567" -compact .Sy "System" Ta Sy "Subsystem" Ta Sy "Type" Ta Sy "Description" +.It Li VFS Ta Ta Ta +Events from the vfs system. +.It Li VFS Ta Li FS Ta Ta +Events that change what is mounted to the system. +.It Li VFS Ta Li FS Ta Li MOUNT Ta +Notification of a filesystem is mounted for the first time. +.It Li VFS Ta Li FS Ta Li REMOUNT Ta +Notification of a filesystem is remounted (whether or not the options actually change). +.It Li VFS Ta Li FS Ta Li UNMOUNT Ta +Notification of a filesystem being unmounted. +.El +.Pp +.Bl -column "System" "Subsystem" "1234567" -compact +.Sy "System" Ta Sy "Subsystem" Ta Sy "Type" Ta Sy "Description" .It Li ZFS Ta ZFS Ta Ta Events about the ZFS subsystem. See