From: Maneesh Soni Subject: Re: File and Directory Change Notifications Date: Fri, 23 Jan 2004 12:19:18 +0530 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20040123064918.GB1342@in.ibm.com> References: <200401222219.17006.theman@josephdwagner.info> Reply-To: maneesh@in.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from e34.co.us.ibm.com ([32.97.110.132]:2481 "EHLO e34.co.us.ibm.com") by vger.kernel.org with ESMTP id S266526AbUAWGpL (ORCPT ); Fri, 23 Jan 2004 01:45:11 -0500 To: "Joseph D. Wagner" Content-Disposition: inline In-Reply-To: <200401222219.17006.theman@josephdwagner.info> List-Id: linux-fsdevel.vger.kernel.org On Fri, Jan 23, 2004 at 04:08:41AM +0000, Joseph D. Wagner wrote: > I want to use file and directory change notifications to see if any other > process has changed a file that I have open. Can Linux distinguish between > different processes modifying the same file for these purposes? Or will I > receive change notifications when my own process changes the file? IMO, the process registering for notification will receive that irrespective of who is modifying the file. You can try the example given in Documentation/dnotify.txt in kernel source tree. Maneesh -- Maneesh Soni Linux Technology Center, IBM Software Lab, Bangalore, India email: maneesh@in.ibm.com Phone: 91-80-5044999 Fax: 91-80-5268553 T/L : 9243696