Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753723Ab0DVKh5 (ORCPT ); Thu, 22 Apr 2010 06:37:57 -0400 Received: from mtoichi13.ns.itscom.net ([219.110.2.183]:56955 "EHLO mtoichi13.ns.itscom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752441Ab0DVKhz (ORCPT ); Thu, 22 Apr 2010 06:37:55 -0400 From: "J. R. Okajima" Subject: Re: [PATCH 13/35] fallthru: ext2 fallthru support To: Jamie Lokier Cc: Jan Blunck , Miklos Szeredi , Valerie Aurora , dwmw2@infradead.org, viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, linux-ext4@vger.kernel.org In-Reply-To: <20100421092235.GB13114@shareable.org> References: <1271372682-21225-14-git-send-email-vaurora@redhat.com> <20100419124025.GG10776@bolzano.suse.de> <1271682168.14748.718.camel@macbook.infradead.org> <20100419132344.GI10776@bolzano.suse.de> <20100419133028.GA3631@shareable.org> <20100419141248.GK10776@bolzano.suse.de> <20100419142315.GA2688@shell> <20100420213450.GM11723@shareable.org> <20100421084211.GB22741@bolzano.suse.de> <20100421092235.GB13114@shareable.org> Date: Thu, 22 Apr 2010 19:30:55 +0900 Message-ID: <1731.1271932255@jrobl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1132 Lines: 28 Jamie Lokier: > Hmm. I smell potential confusion for some otherwise POSIX-friendly > userspaces. ::: > This plays into inotify, where you have to know if you are monitoring > every directory that contains a link to a file, to know if you need to > monitor the file itself directly instead. Addition to the inode number of fallthru/readdir, hardlink in union mount may be a problem. If you open a hardlinked file for writing or try chmod it, the internal copyup will happen and the hardlink will be destroyed. For instance, when fileA and fileB are hardlinked on the lower layer, and the contents of fileA is modifed (copyup happens). You will not see the latest contents via fileB. And the IN_CREATE event may be fired to the parent dir if you monitor it, I am afraid. (I have pointed out this issue before, but the posted document didn't seem to contain about it) J. R. Okajima -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/