From owner-freebsd-hackers@freebsd.org Sat Apr 3 17:22:02 2021 Return-Path: Delivered-To: freebsd-hackers@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 E21475B9ECD for ; Sat, 3 Apr 2021 17:22:02 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FCNyL4FcKz4htq for ; Sat, 3 Apr 2021 17:22:02 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.nyi.freebsd.org (Postfix) id 9193F5B9DFA; Sat, 3 Apr 2021 17:22:02 +0000 (UTC) Delivered-To: hackers@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 9133A5B9DF8 for ; Sat, 3 Apr 2021 17:22:02 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FCNyL3R04z4hxC for ; Sat, 3 Apr 2021 17:22:01 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x836.google.com with SMTP id l13so5696007qtu.9 for ; Sat, 03 Apr 2021 10:22:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JuoXT+BUtdwDhjW9tyNJBN7c+FExljhelrdYAxhwN6c=; b=EpHOlz5bOZVPdgq/eZguza67JmSP+IaRWSXt1CyEGDV0bXDbqNJZ3ySYHBmcQQ7SmO rFccWJjC/x6pOW14EGT4ZXEZ+3dznQVUEuLWonsEaxol/5iJLKzzdpQxMptPkbz1n1iA 71UX1g+V37ytvOSybTeq/corKvj1XKKFfjOPKf5tVTi2m46cvxdQTOkgjVR1e8h8HMpu Fb1HaoJRfTWaiEQpUSp2E3TenbXFPd6L7N5/m4Q8p/ttOtSIEp4EVlyMWAX3k5519JKY L0jSdp9rigKhMtAu+YodwgvA5HZqW4Wswsrlif3JwMjzcGhl4fDlCFvHhOxupTfCMqbL I8jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JuoXT+BUtdwDhjW9tyNJBN7c+FExljhelrdYAxhwN6c=; b=KA+0dzM+f85DsPKuojSQBQ8bxO8VK9MOAz5PRk6kCaWi/YO3FTX/yVF8OzP1CV4MkE TMWQT4Nz4GrLd4IV6meIMKIzsDItPSHyNsKhtO+FgGzfLtJXB/LpGSt1jNlPc5K9k+2J 5KARNVGWgeKSSgwdj+iDMdyCPmqYcV+6JuIH8k4HRF7CR5xWvQH6OQ/rBbmimvkKiNso qFIQn/c1YMvSXgMyTsOtudW+t+oQS0pdIJ/sF0Pgc5f3q/BLAUICzra+R5TTwLP3R9Uz UF5Mdf7CFmTikBFUJsumwt+5ZNE38ketQHAJphjWjAFROkmUSOajZENjH/Cx292EvQUQ k70Q== X-Gm-Message-State: AOAM5316NOdQipW3mk/yS4Dpa9P4ppqjPKfSdLdFjjN0384KJkhYU/3M Ipi60v3Xk69sfkZNZUbhW0MKJjGHHOEzn7hDYbBQxQ== X-Google-Smtp-Source: ABdhPJyuCdPCWJl31DcMxkYiThpvVjYjnKE8oXVg3VnKX5EGWOrBKqlHPXQEYerLqfRCBBTF6RBLolMnwLU6CdQGOvc= X-Received: by 2002:a05:622a:1748:: with SMTP id l8mr16125733qtk.73.1617470521306; Sat, 03 Apr 2021 10:22:01 -0700 (PDT) MIME-Version: 1.0 References: <20210327131011.e16291cac86475e75a33812c@FreeBSD.org> <20210330181402.GM14975@funkthat.com> In-Reply-To: From: Warner Losh Date: Sat, 3 Apr 2021 11:21:50 -0600 Message-ID: Subject: Re: RFC: possible issue with kqueue To: Gleb Popov Cc: Damjan Jovanovic , Rozhuk Ivan , "freebsd-hackers@freebsd.org" X-Rspamd-Queue-Id: 4FCNyL3R04z4hxC X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Apr 2021 17:22:03 -0000 On Sat, Apr 3, 2021 at 1:44 AM Gleb Popov wrote: > On Sat, Apr 3, 2021 at 6:22 AM Rozhuk Ivan wrote: > > > > > https://reviews.freebsd.org/D19690 > > > > I do not finish this. > > Plan was: implement this and catch unmount notify in my FAM, that in > > glib20. > > > > Hum, but I do see mount/unmount events in devd on CURRENT! > I did this in conjunction with the forced unmount work of chs@. I was unaware of this review, but this commit, and those that followed it, added a similar feature. Warner commit 8ef773d1b4236ed3da368f9c91d15c5325d2e735 Author: Warner Losh Date: Wed Aug 19 17:10:04 2020 +0000 Add VFS FS events for mount and unmount to devctl/devd Report when a filesystem is mounted, remounted or unmounted via devd, along with details about the mount point and mount options. Discussed with: kib@ Reviewed by: kirk@ (prior version) Sponsored by: Netflix Diffential Revision: https://reviews.freebsd.org/D25969 Notes: svn path=/head/; revision=364402