X-Spam-Check-By: sourceware.org
Date: Fri, 14 Apr 2006 11:08:36 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Spam:Re: Find not working w/ Samba drive
Message-ID: <20060414090836.GM9135@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <443BA3CA.6070208@byu.net> <2919.71.113.94.37.1144784474.squirrel@wm0> <443C0749.6000106@maplesoft.com> <20060412094839.GA10758@calimero.vinschen.de> <20060412153937.GF9135@calimero.vinschen.de> <e1m3ku$32d$1@sea.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <e1m3ku$32d$1@sea.gmane.org>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Apr 13 11:01, Shankar Unni wrote:
> Corinna Vinschen wrote:
> 
> >Btw., I have hacked together a tiny testcase which lists a directory and
> >evaluates the inode numbers using readdir and lstat.  I would be
> >interested to see the output for some smaller directories on shares
> >using pre-3.0 Samba versions. 
> 
> This is the output from a server running
> 
>    "Version Samba for GuardianOS v2.6.050.200310180953"
> 
> (this is a Snap Appliance file server, which seems to be a 2.4.19 linux 
> kernel. Not sure if they've tweaked smbd in any way..):
> 
> % ./st //hq-share1
>                Documents d: 000000000000000000, st: 018014724927011328
>                   Backup d: 000000000000000000, st: 1495201458608421376
>                   Builds d: 000000000000000000, st: 1297557616381147648
>                        . d: 000000000000000000, st: 3313024975094127606
>                       .. d: 000000000000000000, st: 000000000006035200
> 
> % % ./st //hq-share1/Backup   (names obfuscated..)
>                        . d: 000000000000000000, st: 1495201458608421376
>                       .. d: 000000000000000000, st: 3313024975094127606
>                    xxxx1 d: 000000000000000000, st: 1531250493513284096

Sorry, no, that's impossible.  If the file system returns 0 for d_ino,
or the file system is treated as unreliable, the Cygwin snapshots will
always fake a non-0 inode number in d_ino.  It looks like you're using
a non-matching 'struct dirent' definition.  Did you build the executable
using the dirent.h file from the snapshot?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

