From owner-freebsd-fs@freebsd.org Mon Dec 25 19:07:29 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E04A6EA09F1 for ; Mon, 25 Dec 2017 19:07:29 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from symbion.zaytman.com (inet-64-112-176-10.bos.netblazr.com [64.112.176.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "symbion", Issuer "Narawntapu" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 862E26F23B; Mon, 25 Dec 2017 19:07:28 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from narawntapu.narawntapu (pool-108-53-87-28.nwrknj.fios.verizon.net [108.53.87.28]) by symbion.zaytman.com (8.15.2/8.15.2) with ESMTPS id vBPJ7RHb003577 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 25 Dec 2017 14:07:27 -0500 (EST) (envelope-from mi+thun@aldan.algebra.com) X-Authentication-Warning: symbion.zaytman.com: Host pool-108-53-87-28.nwrknj.fios.verizon.net [108.53.87.28] claimed to be narawntapu.narawntapu Received: from aldan.narawntapu (aldan [192.168.1.10]) by narawntapu.narawntapu (8.15.2/8.15.2) with ESMTP id vBPJ7LDY064491; Mon, 25 Dec 2017 14:07:21 -0500 (EST) (envelope-from mi+thun@aldan.algebra.com) X-Authentication-Warning: narawntapu.narawntapu: Host aldan [192.168.1.10] claimed to be aldan.narawntapu Subject: Re: kqueue/kevent - watching an entire filesystem? To: freebsd-fs References: <9795fa64-b2dc-50c3-c7e0-8422e0388c15@aldan.algebra.com> From: "Mikhail T." Message-ID: Date: Mon, 25 Dec 2017 14:07:21 -0500 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-DCC-Etherboy-Metrics: narawntapu 1002; Body=2 Fuz1=2 Fuz2=2 X-Spam-Status: No, score=-2.9 required=7.5 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on narawntapu.narawntapu Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Dec 2017 19:07:30 -0000 On 25.12.2017 12:41, Conrad Meyer wrote: > I'm afraid there is nothing better than recursively opening > subdirectories to monitor a tree (even a whole filesystem) with > kqueue/kevent. I wonder, how difficult it would be to implement the kevent-filter neccesary for this instead. Can it be just a module, or would it have to modify other places in the kernel? -mi