[Ocfs-users] coreutils-4.5.3-28 causing duplication?

Bryce philip.copeland at oracle.com
Wed Mar 10 18:26:19 CST 2004


Eep,..
erm honest, I can explain,... I think,.. maybe,.. or not

Actually I'm having to rebuild this anyway because of an unaligned
buffer issue.

src:
http://oss.oracle.com/projects/ocfs/files/source/RHAT/RHAS3/coreutils-4.5.3-30.src.rpm

Binary:
http://oss.oracle.com/projects/ocfs/files/supported/RedHat/RHAS3/coreutils-4.5.3-30.i386.rpm
http://oss.oracle.com/projects/ocfs/files/supported/RedHat/RHAS3/coreutils-debuginfo-4.5.3-30.i386.rpm

[root at localhost BUILD]# echo "1" > /etc/motd
[root at localhost BUILD]# echo "2" >> /etc/motd
[root at localhost BUILD]# echo "3" >> /etc/motd
[root at localhost BUILD]# cat /etc/motd
1
2
3
[root at localhost BUILD]# cp /etc/motd /etc/motd2
[root at localhost BUILD]# ls -l /etc/motd /etc/motd2
-rw-r--r--    1 root     root            6 Mar 10 18:25 /etc/motd
-rw-r--r--    1 root     root            6 Mar 10 18:26 /etc/motd2
[root at localhost BUILD]# rpm -q coreutils
coreutils-4.5.3-30

Phil
=--=

On Wed, 2004-03-10 at 16:38, Sheridan, Matt wrote:
> Here's a bit of a strange one. I hunted through the ocfs-users
> archives, but didn't see any mention of this, so here goes...
>  
> Using coreutils 4.5.3-27 on RHAS 3, the utilities perform as expected
> against non-OCFS volumes:
>  
> $ rpm -q coreutils
> coreutils-4.5.3-27
>  
> # cat a 3 line test file. Works as expected
> $ cat /var/tmp/file
> line1
> line2
> line3
>  
> # copy that file. Works as expected
> $ cp /var/tmp/file /var/tmp/file2
>  
> $ ls -l /var/tmp/file*
> -rw-r--r--    1 oracle   dba            18 Mar  9 10:59 /var/tmp/file
> -rw-r--r--    1 root     root           18 Mar 10 09:09 /var/tmp/file2
> 
> #############################################################################
> But, after upgrading to 4.5.3-28, those same operations seem to be
> doing things twice:
>  
> $ rpm -Uv coreutils-4.5.3-28.i386.rpm
> Preparing packages for installation...
> coreutils-4.5.3-28
>  
> $ rpm -q coreutils
> coreutils-4.5.3-28
>  
> # using 4.5.3-28, output is duplicated
> $ cat /var/tmp/file
> line1
> line2
> line3
> line1
> line2
> line3
>  
> $ cp /var/tmp/file /var/tmp/file2
> cp: overwrite `/var/tmp/file2'? y
>  
> # using 4.5.3-28, file size has been doubled
> $ ls -l /var/tmp/file*
> -rw-r--r--    1 oracle   dba            18 Mar  9 10:59 /var/tmp/file
> -rw-r--r--    1 root     root           36 Mar 10 09:10 /var/tmp/file2
> 
> # for reference...
> $ uname -a
> Linux andesite 2.4.21-9.ELsmp #1 SMP Thu Jan 8 17:08:56 EST 2004 i686
> i686 i386 GNU/Linux
>  
> $ ls -l
> -rw-r--r--    1 oracle   dba       2437173 Mar  9 15:50
> coreutils-4.5.3-27.i386.rpm
> -rw-r--r--    1 oracle   dba       2439368 Mar  9 15:36
> coreutils-4.5.3-28.i386.rpm
>  
>  
>  
> After downgrading back to -27, everything works fine again.
>  
> Any ideas? My expectation was the these utilities would perform in the
> usual fashion against non-OCFS volumes but were enhanced to work with
> OCFS files via the o_direct flag. Is that not a correct assumption?
>  
> 
> ______________________________________________________________________
> Matt Sheridan
> 
>  
> 
> ______________________________________________________________________
> _______________________________________________
> Ocfs-users mailing list
> Ocfs-users at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs-users



More information about the Ocfs-users mailing list