From owner-freebsd-hackers@freebsd.org Wed Apr 7 05:09:06 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 426825CAAA1 for ; Wed, 7 Apr 2021 05:09:06 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFXVn0D8hz3snF for ; Wed, 7 Apr 2021 05:09:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.nyi.freebsd.org (Postfix) id 079935CA927; Wed, 7 Apr 2021 05:09:05 +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 076625CA926 for ; Wed, 7 Apr 2021 05:09:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) (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 4FFXVm6c02z3t00 for ; Wed, 7 Apr 2021 05:09:04 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72d.google.com with SMTP id v70so17502574qkb.8 for ; Tue, 06 Apr 2021 22:09:04 -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=GLutIjv5TJzem273IY9NB8o+K9Bwh01qhZRX6oV108E=; b=i7NV2n36vHtEVe5jKBA74MMR0hNOCsNm09Gu70gByuCKyeseFBag546tR6ahKkSCgA jgki9duED1NcY7qTzqKKSy+w+vg1I8iiK0kiZdbLIK0tu7BSfIIOkQxeaWehrGbwEVXR liCGJ94j5zLySdfnFM/Fnt1mpj6CAZgs7Ja6v5VPf5Q5BQECSfpjsb9+gP7IcasGDqTV wgOYO41aMuNmxN7WT8tHPTVHlooBXDHGcPn4xfZYAuXsdOMYJOFI+6BosbHCYnKJav86 aqth6AM/tzHsLcNhI6OghPODluwzBvvFAdSndCPtV8pabiT3EUBZCLhQAMDAYeNKDJo1 LZDg== 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=GLutIjv5TJzem273IY9NB8o+K9Bwh01qhZRX6oV108E=; b=ks9kSAKxIU+9MlPSCmvfJg0S8ddRumOh71aF+2uXRHkWTyn3rdSyWJ+nSV7bBwzMFB VhvTP7Q4lF+4rT9xQLLadXQpfBpf1Ybm7oQ+2l/EXqaPAzGuknzfhBCZQBaoz1g6FtiJ 3ZCkPaZ84DMVuuKYnZ9UR/hAPeGuffocaK0FC/fAt1ozxm3VD0g9RpzyaUlCXtGAKXGZ 4NNTpxmzs0SWmimlf6I0MieLX9siCEXHJw+Zv/TJ/IgUOXQaHn5JUHAeLQmNPS2+UOLx XgR3tNBW59SsuCPK+vC0hPwhwMspNJ9PdlET+o8DK0cE/wcxqNhgoSRhyrOZKuVpwH7t M0/A== X-Gm-Message-State: AOAM533EPBGwQBmpeZide5anCtJ6kV7lCuCLyAlIw7KFeOpN3wTyvsbQ GytwBfjpzvHCCMEfTDlBHDu85WMl5ZtMtNTO0arDLg== X-Google-Smtp-Source: ABdhPJx9pTJJrjdxm8WLGqspCjFhQFUZOOGJfbW6PyK20GaK3r13c8TUDUCr+p9sV6i0kemdYQuou/Ouv0Xo2oNG7fc= X-Received: by 2002:a37:a48a:: with SMTP id n132mr1409778qke.359.1617772144262; Tue, 06 Apr 2021 22:09:04 -0700 (PDT) MIME-Version: 1.0 References: <20210327131011.e16291cac86475e75a33812c@FreeBSD.org> <20210330181402.GM14975@funkthat.com> <20210407071419.6dc84f3c@rimwks.local> <20210407075819.52fd2eb7@rimwks.local> In-Reply-To: <20210407075819.52fd2eb7@rimwks.local> From: Warner Losh Date: Tue, 6 Apr 2021 23:08:51 -0600 Message-ID: Subject: Re: RFC: possible issue with kqueue To: Rozhuk Ivan Cc: Gleb Popov , Damjan Jovanovic , "freebsd-hackers@freebsd.org" X-Rspamd-Queue-Id: 4FFXVm6c02z3t00 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: Wed, 07 Apr 2021 05:09:06 -0000 On Tue, Apr 6, 2021, 10:58 PM Rozhuk Ivan wrote: > On Tue, 6 Apr 2021 22:50:16 -0600 > Warner Losh 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@. > > > > > > > > > Where I can learn more about this? > > > > > > > The devd stuff is documented in devd.conf(5). > > > > The umount stuff is documented in the commit message for hash > > d79ff54b5caad61e657b9cc651aa256f3949b97a > > > > > Sorry, it is unclear to me: who uses mount/unmount devd notifications? > Devd has a config file that you can use to configure scripts that run when mount/umount happens. The bsdisk port uses it to track what was mounted. Warner >