bug-gnu-utils
[Top][All Lists]
Advanced

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

clearcase and inodes


From: Leisner, Martin
Subject: clearcase and inodes
Date: Fri, 28 Apr 2006 11:39:45 -0400

I'm using diff 2.7.1 (but newer ones probably work the same way).

On clearcase trees, the fact that two directory have the same inode
number doesn't mean the
children under them are the same (this I found by inspection).


:1 address@hidden 11:35:48; pwd
/view/mleisner_CIPS_1/vobs/cips/tests
:1 address@hidden 11:34:54; diff -r  .
/view/mleisner_CIPS_int/vobs/cips/tests 
:1 address@hidden 11:35:45; diff -r imagePathTest/
/view/mleisner_CIPS_int/vobs/cips/tests/imagePathTest/
diff -r imagePathTest/Makefile
/view/mleisner_CIPS_int/vobs/cips/tests/imagePathTest/Makefile
39,42d38
< RPATH=-Wl,--rpath,../../userSpace     # is there a way to only to this
for ISMD builds?
< 
< 
< # target has the library here by default
44c40,41
< RPATH+=-Wl,--rpath,/usr/cips/lib
---
> $(warning setting rpath)
> RPATH=-Wl,--rpath,/usr/cips/lib
Only in /view/mleisner_CIPS_int/vobs/cips/tests/imagePathTest/:
Makefile.contrib
Only in /view/mleisner_CIPS_int/vobs/cips/tests/imagePathTest/:
Makefile.contrib.1
Only in /view/mleisner_CIPS_int/vobs/cips/tests/imagePathTest/:
Makefile.contrib.2
Only in /view/mleisner_CIPS_int/vobs/cips/tests/imagePathTest/:
Makefile.keep

>From the end of strace on the first diff:
stat64(".", {st_dev=makedev(254, 18), st_ino=22816,
st_mode=S_IFDIR|0775, st_nlink=4, st_uid=50001, st_gid=14000,
st_blksize=8192, st_blocks=4, st_size=65, st_atime=2006/02/15-11:37:59,
st_mtime=2006/02/15-11:37:59, st_ctime=2006/02/15-11:37:59}) = 0
stat64("/view/mleisner_CIPS_int/vobs/cips/tests", {st_dev=makedev(254,
18), st_ino=22816, st_mode=S_IFDIR|0775, st_nlink=4, st_uid=50001,
st_gid=14000, st_blksize=8192, st_blocks=4, st_size=65,
st_atime=2006/02/15-11:37:59, st_mtime=2006/02/15-11:37:59,
st_ctime=2006/02/15-11:37:59}) = 0

Hmmm...the inodes are the same, so diff thinks "I'm done".

A brute force approach would be to have an option to turn off the inode
compares.

(After using clearcase for nearly a year, I'm NOT a fan of it).

marty




reply via email to

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