directories not correctly recognized rsync-3.0.4 - Tools

This is a discussion on directories not correctly recognized rsync-3.0.4 - Tools ; Hi, I'm running rsync-3.0.4 on my UNIX system. I've just updated from rsync-2.6.9. I'm facing a general problem with the execution of files during a transfer process. The situation: 2 Directories (dir1 and dir2) on one machine with a some ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: directories not correctly recognized rsync-3.0.4

  1. directories not correctly recognized rsync-3.0.4

    Hi,

    I'm running rsync-3.0.4 on my UNIX system. I've just updated from rsync-2.6.9.
    I'm facing a general problem with the execution of files during a transfer process.

    The situation: 2 Directories (dir1 and dir2) on one machine with a some files in dir1 which shall be translated to dir2.

    rsync does not correctly recognize dir1 and dir2 as directories. It tries to transfer dir1 as a file to dir2. Then, of course, it cancelles the transfer because dir1 is not a regulary file.

    #building file list ...
    #[sender] change_dir(/u/prak28)
    #[sender] make_file(dir1,*,0)
    #done
    #THE FILELIST
    #[sender] flist start=0, used=1, low=0, high=0
    #[sender] i=0 /u/prak28 dir1 mode=0755 len=288 uid=3007030 gid=0 flags=5
    #THE FILELIST END
    #send_file_list done
    #file list sent
    #send_files starting

    How can that happen? Anyone some ideas?

    Thanks a lot!
    Jan
    --
    GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
    http://games.entertainment.gmx.net/d...puzzle/6169196
    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


  2. Re: directories not correctly recognized rsync-3.0.4

    On Tue 09 Sep 2008, Jan Thielmann wrote:
    >
    > I'm running rsync-3.0.4 on my UNIX system. I've just updated from rsync-2.6.9.
    > I'm facing a general problem with the execution of files during a transfer process.
    >
    > The situation: 2 Directories (dir1 and dir2) on one machine with a some files in dir1 which shall be translated to dir2.
    >
    > rsync does not correctly recognize dir1 and dir2 as directories. It tries to transfer dir1 as a file to dir2. Then, of course, it cancelles the transfer because dir1 is not a regulary file.


    Please show the complete, exact commmand line you use to start rsync.
    Also a listing of the directories involved could be useful
    (e.g. find dir1 dir2 -ls)


    Paul Slootman
    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


  3. Re: directories not correctly recognized rsync-3.0.4

    On Tue, Sep 09, 2008 at 01:08:57PM +0200, Jan Thielmann wrote:
    > #[sender] i=0 /u/prak28 dir1 mode=0755 len=288 uid=3007030 gid=0 flags=5


    That mode is totally bogus. For dir1 to be a dir, it should have mode
    040775. If it were a regular file, it should have mode 010775. So, you
    should investigate if stat() is returning just 0755 in st_mode, or if
    the value is unusually large (and thus, truncated). One way to get an
    inkling should be to run:

    perl -e 'printf "0%o\n", (stat("dir1"))[2]'

    However, to really know what rsync is getting, you'd be better of either
    running rsync under a debugger, or adding an fprintf() into link_stat():

    --- flist.c
    +++ flist.c
    @@ -224,6 +224,7 @@ int link_stat(const char *path, STRUCT_STAT *stp, int follow_dirlinks)
    return x_stat(path, stp, NULL);
    if (x_lstat(path, stp, NULL) < 0)
    return -1;
    + fprintf(stderr, "0%o\t%s\n", stp->st_mode, path);
    if (follow_dirlinks && S_ISLNK(stp->st_mode)) {
    STRUCT_STAT st;
    if (x_stat(path, &st, NULL) == 0 && S_ISDIR(st.st_mode))

    ...wayne..
    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


  4. Re: directories not correctly recognized rsync-3.0.4

    Thanks for the quick reply!

    In fact, the mode is beeing truncated. The fprintf yields the following:

    0100000755 (the directory)
    0300000755 (a regular file)

    So, it seems that my system is not compliant to the values that rsync expects.
    In fact, my system is a mainframe running Unix System Services, but this system is compliant
    to POSIX.
    Previously I was running rsync-2.6.9 on that system and it was working well.

    Thanks!
    Jan

    -------- Original-Nachricht --------
    > Datum: Tue, 9 Sep 2008 06:49:38 -0700
    > Von: Wayne Davison
    > An: Jan Thielmann
    > CC: rsync@lists.samba.org
    > Betreff: Re: directories not correctly recognized rsync-3.0.4


    > On Tue, Sep 09, 2008 at 01:08:57PM +0200, Jan Thielmann wrote:
    > > #[sender] i=0 /u/prak28 dir1 mode=0755 len=288 uid=3007030 gid=0 flags=5

    >
    > That mode is totally bogus. For dir1 to be a dir, it should have mode
    > 040775. If it were a regular file, it should have mode 010775. So, you
    > should investigate if stat() is returning just 0755 in st_mode, or if
    > the value is unusually large (and thus, truncated). One way to get an
    > inkling should be to run:
    >
    > perl -e 'printf "0%o\n", (stat("dir1"))[2]'
    >
    > However, to really know what rsync is getting, you'd be better of either
    > running rsync under a debugger, or adding an fprintf() into link_stat():
    >
    > --- flist.c
    > +++ flist.c
    > @@ -224,6 +224,7 @@ int link_stat(const char *path, STRUCT_STAT *stp, int
    > follow_dirlinks)
    > return x_stat(path, stp, NULL);
    > if (x_lstat(path, stp, NULL) < 0)
    > return -1;
    > + fprintf(stderr, "0%o\t%s\n", stp->st_mode, path);
    > if (follow_dirlinks && S_ISLNK(stp->st_mode)) {
    > STRUCT_STAT st;
    > if (x_stat(path, &st, NULL) == 0 && S_ISDIR(st.st_mode))
    >
    > ..wayne..


    --
    Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
    Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


+ Reply to Thread