bug-idutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [bug-idutils] can you build ID using relative path


From: Karl \(Xiangrong\) Cai
Subject: RE: [bug-idutils] can you build ID using relative path
Date: Tue, 5 Dec 2006 15:22:19 -0500

Hi, Please see below started with KC. Thanks.

-- Karl

-----Original Message-----
From: Claudio Fontana [mailto:address@hidden 
Sent: Saturday, November 25, 2006 9:03 AM
To: Karl (Xiangrong) Cai
Cc: address@hidden
Subject: Re: [bug-idutils] can you build ID using relative path


Hello,

--- address@hidden wrote:

> Hi,
> 
> It seems to me that mkid builds the ID database
> useing the full path of a file, not the relative
> path. 

Yes.

KC: is there a way/plan to make the relative path. Please note this is
the whole purpose of this mail. The following is just an example to
illustrate the problem I am facing.

> For example, if the file is at
> \\host1/home/kcai/sample.c

what is \\host1 ?

KC: you can think \\host1 is a mount point. For example, suppose my code
is under /homes/xcai/code/, and this directory is in the local disk of
machine \\host1. This directory is also exported as an NFS file system.
So on another machine host2, this directory maybe
/host1/homes/xcai/code. I build the tags on host1 under
/homes/xcai/code, hoping that the IDs will be generated using the
relative path, so that when I cd to /host2/home/xcai/code on host2, I
can run gid also. However, it reported something like this:

lid: can't open `/homes/xcai/code/igmp/igmp.h': No such file or
directory

> , and function test() is
> defined/used in this c file (I did the "mkid *.c"
> under /home/kcai), then I can only use gid at host1.
> If somehow I am in host2 and also have the acess to
> /home/kcai/, but the path is now /host1/home/kcai,
> then I can't do a "gid test". It reports that
> /home/kcai/sample.c can't be found.
> 
> If the path is relative, I can always cd to
> /home/kcai or /host1/home/kcai first and do the gid
> there.
> 
> Is this a known issue? If yes, do we have a
> solution?

Could you state your idutils version, your OS and
architecture of the hosts involved and a clear
description of which commands you run, and what you
get instead?

KC: lid - 4.2; FreeBSD 4.11;
Having code in host1 under /homes/xcai/igmp/igmp.h, which has igmp_init
as an ID;
On host1, under /homes/xcai, "mkid *", which generates file ID under
this directory;
On host1, under /homes/xcai, "gid igmp_init" shows line numbers in file
igmp/igmp.h;
On host2, under /host1/homes/xcai, "gid igmp_init" shows error:
lid: can't open `/homes/xcai/igmp/igmp.h': No such file or directory

Would like to see gid works on host2 in this case without build another
copy of ID. Thanks.


Thanks,

Claudio



__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da
tanto spazio gratuito per i tuoi file e i messaggi 
http://mail.yahoo.it 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]