From owner-freebsd-fs@freebsd.org Tue Jan 5 02:22:37 2016 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 0B4A6A61FAD for ; Tue, 5 Jan 2016 02:22:37 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id C2CB31C54 for ; Tue, 5 Jan 2016 02:22:36 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) IronPort-PHdr: 9a23:K42XgxL40hDSkdSOWdmcpTZWNBhigK39O0sv0rFitYgULPTxwZ3uMQTl6Ol3ixeRBMOAu6wC07KempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lRMiK14ye7KObxd76W01wnj2zYLd/fl2djD76kY0ou7ZkMbs70RDTo3FFKKx8zGJsIk+PzV6nvp/jtLYqySlbuuog+shcSu26Ov1gFf0LRAghZls47cujmAPCRkOh73QVVC1CiRdGKyvE8BHgQ4+3mQzf4LlTwi6faPf3RrN8fD2p7KNmTVe8kiIOPD09/WT/l8t/ka9fuBLnrBUpkN2cW52cKPcrJvCVRtgdX2cUG58JDyE= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CvBACMKItW/61jaINehAxtBohTtWwYCoUjSgKBWBEBAQEBAQEBAYEJgi2CBwEBAQMBAQEBICsgCwULAgEIGAICDRkCAicBCSYCBAgHBAEcBIgGCA6wNJB8AQEBAQEBAQEBAQEBAQEBAQEBAQEVBIEBhVWEf4Q3AQGDOoFJBY05d4hWhUGFJIY8iyuOPAI4LIIRHIF7IDQHg0c6gQgBAQE X-IronPort-AV: E=Sophos;i="5.20,523,1444708800"; d="scan'208";a="259613851" Received: from nipigon.cs.uoguelph.ca (HELO zcs1.mail.uoguelph.ca) ([131.104.99.173]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 04 Jan 2016 21:22:19 -0500 Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 05D9D15F55D; Mon, 4 Jan 2016 21:22:20 -0500 (EST) Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id OgTprwzb2rcG; Mon, 4 Jan 2016 21:22:19 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 8845815F565; Mon, 4 Jan 2016 21:22:19 -0500 (EST) X-Virus-Scanned: amavisd-new at zcs1.mail.uoguelph.ca Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9PjiFSH2C-Em; Mon, 4 Jan 2016 21:22:19 -0500 (EST) Received: from zcs1.mail.uoguelph.ca (zcs1.mail.uoguelph.ca [172.17.95.18]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 6EDC915F55D; Mon, 4 Jan 2016 21:22:19 -0500 (EST) Date: Mon, 4 Jan 2016 21:22:19 -0500 (EST) From: Rick Macklem To: Sean Eric Fagan Cc: freebsd-fs@freebsd.org Message-ID: <416747176.149128068.1451960539354.JavaMail.zimbra@uoguelph.ca> In-Reply-To: <201601041959.u04JxWGn053360@kithrup.com> References: <201601041959.u04JxWGn053360@kithrup.com> Subject: Re: Monitoring FS changes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.95.12] X-Mailer: Zimbra 8.0.9_GA_6191 (ZimbraWebClient - FF43 (Win)/8.0.9_GA_6191) Thread-Topic: Monitoring FS changes Thread-Index: tlJhMqxLAd4sv4+tuocU2sb3hHS3DA== X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jan 2016 02:22:37 -0000 Sean Eric Fagan wrote: > >The generic problem we have there is quite different. Assume that > >we establish a new monitor on a directory, and assume there exists > >previously open file, which vnode should be now monitored by the > >'children' rule. How can we learn that the vnode must be included in the > >watching set, i.e. marked ? Same issue occurs for fhopen() and for NFS > >handles. > > xnu solved that by putting a parent pointer in each vnode (obviously, not set > for non-fs objects). Once they did that, this kept a reference for each > vnode, and voila, always there. > Just wondering how they handle the case of multiple hard links in different directories? rick > They also keep a reference cache of names; this makes a lot more sense on a > Mac OS system since so many directories and files have the same name > (there are 9400 instances of "Info.plist" on my laptop at the moment, for > example). > > The memory footprint for each of these was not too large. But, then, Apple > wasn't supporting systems with less than 1gbytes of ram at the time 8-). > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >