Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 5 Sep 2002 10:12:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 5 Sep 2002 10:12:46 -0400 Received: from angband.namesys.com ([212.16.7.85]:49833 "HELO angband.namesys.com") by vger.kernel.org with SMTP id ; Thu, 5 Sep 2002 10:12:45 -0400 Date: Thu, 5 Sep 2002 18:17:21 +0400 From: Oleg Drokin To: Chris Mason Cc: szepe@pinerecords.com, linux-kernel@vger.kernel.org, reiserfs-dev@namesys.com Subject: Re: [reiserfs-dev] Re: [PATCH] sparc32: wrong type of nlink_t Message-ID: <20020905181721.D32687@namesys.com> References: <3D76A6FF.509@namesys.com> <1031186951.1684.205.camel@tiny> <20020905054008.GH24323@louise.pinerecords.com> <20020904.223651.79770866.davem@redhat.com> <20020905135442.A19682@namesys.com> <20020905174902.A32687@namesys.com> <1031234624.1726.224.camel@tiny> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <1031234624.1726.224.camel@tiny> User-Agent: Mutt/1.3.22.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1223 Lines: 35 Hello! On Thu, Sep 05, 2002 at 10:03:44AM -0400, Chris Mason wrote: > read the -noleaf description on the find man page to see why we need to > set the directory link count to 1 when we are lying to userspace about > the actual link count on directories. There is nothing about nlink == 1 means assume -noleaf, so it should not work with old way too, right? Have anybody verified? ;) Actually patch might be easily modified to represent i_nlink == 1 for large directories, but still maintain correct on-disk nlink count. (and show maximal possible nlink count for regular files. Hm, I wonder if tar and stuff would break if met with file that have 67000 hardlinks ;) ). > find isn't the only program that makes this assumption (it's just the > only one I can think of ;-) All of these programs are broken if there is no way to turn this feature off then. ;) > Other than that the patch (the second one diffed against the correct > tree) looks sane. Good. Bye, Oleg - 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/