** Changed in: ocfs2
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
High Availability Team, which is subscribed to ocfs2-tools in ubuntu.
https://bugs.launchpad.net/bugs/191942

Title:
  Copying file to an OCFS2 file system using rsync result in wrong
  ownership of symlinks

Status in OCFS2 File System.:
  Fix Released
Status in “ocfs2-tools” package in Ubuntu:
  Invalid

Bug description:
  Not sure if this should be filed against linux-meta (if it is an OCFS2
  bug) or against rsync, so I left the package field blank.

  When copying files to an OCFS2 filesystem using rsync, ownership of
  symlinks is not preserved correctly.  Strangely, running rsync a
  second time would fix the ownership.  This problem have been isolated
  to using rsync and OCFS2 in conjunction, as ownership of symlinks is
  preserved correctly on the same machine when either rsync'ing to an
  ext3 file system, or when copying to an OCFS2 volume using other means
  (such as cp).  The symptoms have been observed in both gutsy and
  hardy.

  uname -a: Linux ocfs2-hardy-node1 2.6.24-5-server #1 SMP Thu Jan 24
  19:58:47 UTC 2008 x86_64 GNU/Linux

  
  Steps to reproduce
  ------------------------

  1. Install hardy, create an OCFS2 volume and mount it under /data (for
  example)

  2. Setup a rsyncd server, and create a module where files, including
  synlinks, are not owned by root (owned by ftp:ftp in my example here)

  3. rsync the files to your OCFS2 volume.  the command line i use is:

      sudo rsync -avz 192.168.1.10::rsync-test /data/rsync-test/

  4. ls -l /data/rsync-test -> notice that file ownership are correct,
  except for symlinks which are owned by root:root instead of ftp:ftp as
  they should

  5. Run the rsync command above a second time.

  6. ls -l /data/rsync-test -> notice that all files, including
  symlinks, are now owned correctly by ftp:ftp

  7. rsync to a location that is on an ext3 file system now (/home/test
  in this example)

      sudo rsync -avz 192.168.1.10::rsync-test /home/test/

  8. ls -l /home/test -> notice all file ownership are correct,
  including symlinks

  9. Copy the file to the OCFS2 volume using some other mean (in this
  example, using cp from a NFS mount)

      sudo rm -rf /data/rsync-test/*
      sudo mount 192.168.1.10:/data /mnt
      sudo cp -a /mnt/* /data/rsync-test/

  10. ls -l /data/rsync-test -> notice all file ownership are correct,
  including symlinks



_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-ha
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-ha
More help   : https://help.launchpad.net/ListHelp

Reply via email to