Re: Status of --ignorcase option in main tree/build? - Tools

This is a discussion on Re: Status of --ignorcase option in main tree/build? - Tools ; On Thu, 2008-05-15 at 16:47 -0400, Charles Marcus wrote: > On 5/15/2008 4:31 PM, Matt McCutchen wrote: > > On Thu, 2008-05-01 at 10:55 -0400, Charles Marcus wrote: > >> Did [the --ignore-case] patch get included in the new 3.0.x ...

+ Reply to Thread
Results 1 to 8 of 8

Thread: Re: Status of --ignorcase option in main tree/build?

  1. Re: Status of --ignorcase option in main tree/build?

    On Thu, 2008-05-15 at 16:47 -0400, Charles Marcus wrote:
    > On 5/15/2008 4:31 PM, Matt McCutchen wrote:
    > > On Thu, 2008-05-01 at 10:55 -0400, Charles Marcus wrote:
    > >> Did [the --ignore-case] patch get included in the new 3.0.x standard version?

    >
    > > No.

    >
    > Ooooo-k... bummer. I thought it was supposed to be...


    Right, here's the reference:

    http://lists.samba.org/archive/rsync...ay/017682.html

    > Any chance it ever will be? This is kind of important when rsyncing
    > between two systems, one of which ignores (ala windows) and one which
    > doesn't (ala linux), so I'm surprised there isn't a lot of demand for it....


    Wayne, do you have a comment about the inclusion of --ignore-case?

    Matt

    --
    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
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (GNU/Linux)

    iEYEABECAAYFAkgsu4QACgkQC+xSYN/RlfuQTQCdFyBtH/c+SsNZp6zpp5khN1of
    n+EAnjyjIJ7cI1QX2xj++d9EpGdlvY/w
    =Xkt/
    -----END PGP SIGNATURE-----


  2. Re: Status of --ignorcase option in main tree/build?

    On Thu, May 15, 2008 at 06:39:03PM -0400, Matt McCutchen wrote:
    > Wayne, do you have a comment about the inclusion of --ignore-case?


    I don't particularly like the option, so my current inclination is to
    just keep it available in the patches directory for those that want it.

    ...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


  3. Re: Status of --ignorcase option in main tree/build?

    On 5/15/2008 7:18 PM, Wayne Davison wrote:
    > On Thu, May 15, 2008 at 06:39:03PM -0400, Matt McCutchen wrote:
    >> Wayne, do you have a comment about the inclusion of --ignore-case?


    > I don't particularly like the option, so my current inclination is to
    > just keep it available in the patches directory for those that want it.
    >
    > ..wayne..


    Hi Wayne,

    I hope you don't mind a follow-up...

    You can do what you want, of course, but the problem with this is some
    of the people who will want to use rsync to backup Windows boxes are -
    or at least I am - shall we say, not programmers, and are not totally
    comfortable patching code - and so will be at the mercy of someone
    else's generosity for providing a patched version of the rsync binary.

    Matt was kind enough to do this for me a while back with 2.6.9, but I'd
    rather not keep bothering him every time a new version is released.

    Is the code somehow invasive, or create some kind of unsafe situation or
    problem?

    Or is it just because you don't like Windows/Microsoft, and/or the fact
    that it doesn't ignore case?

    --

    Best regards,

    Charles
    --
    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: Status of --ignorcase option in main tree/build?

    On Fri, 2008-05-16 at 08:54 -0400, Charles Marcus wrote:
    > On 5/15/2008 7:18 PM, Wayne Davison wrote:
    > > I don't particularly like the option, so my current inclination is to
    > > just keep it available in the patches directory for those that want it.

    >
    > Hi Wayne,
    >
    > I hope you don't mind a follow-up...
    >
    > You can do what you want, of course, but the problem with this is some
    > of the people who will want to use rsync to backup Windows boxes are -
    > or at least I am - shall we say, not programmers, and are not totally
    > comfortable patching code - and so will be at the mercy of someone
    > else's generosity for providing a patched version of the rsync binary.
    >
    > Matt was kind enough to do this for me a while back with 2.6.9, but I'd
    > rather not keep bothering him every time a new version is released.


    To some degree I can see Wayne's rationale for not including
    --ignore-case in the main version of rsync. Officially, rsync targets
    only Unix-like systems, not Windows, though OS-specific compatibility
    changes/features are fair game for the maintained patches. I remember
    Wayne declined another Windows-specific change I proposed a while ago.

    But the main version of rsync isn't, and IMHO isn't meant to be, the
    be-all, end-all. Let's see what we can do about getting you the
    binaries. It would make sense for cwRsync to include --ignore-case if
    it doesn't already. (Tev?) For the Linux end, one of the things on my
    to-do list is to look into offering source and binaries for a number of
    different patched rsync versions, likely including an --ignore-case
    version, on my Web site. I could write a script to build RPMs for rsync
    plus each patch in isolation, or maybe there are some combinations of
    patches that people use often and I could package.

    Matt

    --
    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


  5. Re: Status of --ignorcase option in main tree/build?

    On 5/16/2008, Matt McCutchen (matt@mattmccutchen.net) wrote:
    > To some degree I can see Wayne's rationale for not including
    > --ignore-case in the main version of rsync. Officially, rsync targets
    > only Unix-like systems, not Windows, though OS-specific compatibility
    > changes/features are fair game for the maintained patches. I remember
    > Wayne declined another Windows-specific change I proposed a while ago.
    >
    > But the main version of rsync isn't, and IMHO isn't meant to be, the
    > be-all, end-all. Let's see what we can do about getting you the
    > binaries. It would make sense for cwRsync to include --ignore-case if
    > it doesn't already. (Tev?) For the Linux end, one of the things on my
    > to-do list is to look into offering source and binaries for a number of
    > different patched rsync versions, likely including an --ignore-case
    > version, on my Web site. I could write a script to build RPMs for rsync
    > plus each patch in isolation, or maybe there are some combinations of
    > patches that people use often and I could package.


    Wow, that would be awesome! I was very happy that you were willing to do
    this for me earlier, but obviously bugging you every time a new release
    came out was not an option. I didn't worry too much about it at the
    time, since Wayne had said it would be making it into the main tree for
    3.0...

    If you could automate this, so that it isn't a pain in your butt, then I
    guess this would be a very satisfactory solution for this - hmm, I'm not
    sure I'd go so far as to call it a 'corner case', since, even though
    rsync definitely started out as a *nix only utility, there are
    definitely a *lot* of windows people taking advantage of its power and
    flexibility - but, well, you get my drift...

    Thanks so much for considering different ways of helping out those of us
    both less skilled, and doomed to continue to support the windows world!



    --

    Best regards,

    Charles
    --
    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


  6. Re: Status of --ignorcase option in main tree/build?

    On Fri, May 16, 2008 at 12:24 PM, Matt McCutchen wrote:
    > On Fri, 2008-05-16 at 08:54 -0400, Charles Marcus wrote:
    >> On 5/15/2008 7:18 PM, Wayne Davison wrote:
    >> > I don't particularly like the option, so my current inclination is to
    >> > just keep it available in the patches directory for those that want it.

    >>
    >> Hi Wayne,
    >>
    >> I hope you don't mind a follow-up...
    >>
    >> You can do what you want, of course, but the problem with this is some
    >> of the people who will want to use rsync to backup Windows boxes are -
    >> or at least I am - shall we say, not programmers, and are not totally
    >> comfortable patching code - and so will be at the mercy of someone
    >> else's generosity for providing a patched version of the rsync binary.
    >>
    >> Matt was kind enough to do this for me a while back with 2.6.9, but I'd
    >> rather not keep bothering him every time a new version is released.

    >
    > To some degree I can see Wayne's rationale for not including
    > --ignore-case in the main version of rsync. Officially, rsync targets
    > only Unix-like systems, not Windows, though OS-specific compatibility
    > changes/features are fair game for the maintained patches. I remember
    > Wayne declined another Windows-specific change I proposed a while ago.


    How does this work on OS X/HFS+ (case-preserving, but
    case-insensitive)? Any issues with the standard build in a mixed-OS
    scenario like this?
    --
    Aaron Davies
    aaron.davies@gmail.com
    --
    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


  7. Re: Status of --ignorcase option in main tree/build?

    On Sat, 2008-05-17 at 01:32 -0400, Aaron Davies wrote:
    > How does this work on OS X/HFS+ (case-preserving, but
    > case-insensitive)? Any issues with the standard build in a mixed-OS
    > scenario like this?


    The standard version should work mostly fine on a case-insensitive,
    case-preserving filesystem. The major issue is in the behavior with a
    source file and a destination file that differ only in case (say foo and
    FOO):

    * If you don't use a --delete mode, rsync will find foo already present
    on the destination due to the case insensitivity and won't change
    anything.

    * If you use --delete-before or --delete-during, rsync will delete FOO
    as extraneous and then copy foo. The overall effect is to
    (inefficiently) update the case of destination files, which may be
    desirable. If you change the case of a destination file by hand to work
    around case sloppiness in a program (see
    https://bugzilla.samba.org/show_bug.cgi?id=3444#c5 ) and don't want
    rsync to reverse your change, you can use a protect filter to block the
    individual deletion.

    * If you use --delete-delay or --delete-after, rsync will find foo
    present and then delete FOO, leaving you with no destination file at
    all, so don't use --delete-delay or --delete-after.

    With --ignore-case, the patched version of rsync will leave FOO alone
    regardless of the delete mode. --ignore-case also makes filter matching
    case-insensitive.

    Note that HFS+'s behavior of automatically decomposing UTF-8 characters
    in filenames presents analogous issues when source files whose names
    contain composed UTF-8 characters are copied to an HFS+ destination. To
    work around this problem, pass --iconv=UTF-8,UTF8-MAC for a local copy
    or push, or --iconv=UTF8-MAC,UTF-8 for a pull.

    Matt

    --
    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


  8. Re: Status of --ignorcase option in main tree/build?


    >* If you use --delete-before or --delete-during, rsync will delete FOO
    >as extraneous and then copy foo. The overall effect is to
    >(inefficiently) update the case of destination files, which may be
    >desirable. If you change the case of a destination file by hand to work
    >around case sloppiness in a program (see
    >https://bugzilla.samba.org/show_bug.cgi?id=3444#c5 ) and don't want
    >rsync to reverse your change, you can use a protect filter to block the
    >individual deletion.
    >
    >With --ignore-case, the patched version of rsync will leave FOO alone
    >regardless of the delete mode. --ignore-case also makes filter matching
    >case-insensitive.


    Is there a way that rsync will find different case files in destination and will
    update the filename without copying the whole file? Kind of a special case of
    the "find existing" patch. This is something that might be useful even on
    case-sensitive filesystems as on linux. As only the case has changed
    it may be a lot easier to implement than a full search for the file.

    bye Fabi


    --
    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