Re: Windows 2003 Cygwin Netapp remote filesystem
Cool, thanks for all the help, I will probably go with that patch, since the code I wrote won't be around in any updates. Although I used a flag much like CFN_KEEP_BEG_DBL_SLASH and then did much the same thing. And /cygdrive/c was working, but my remote cygdrive's were not, it was the mount environment that I was missing on the windows side, because if you specifically declare the mounts in the registry, it would work. thanks again On Fri, Dec 26, 2008 at 8:10 PM, Matt McCutchen m...@mattmccutchen.net wrote: On Fri, 2008-12-26 at 14:13 -0700, Michael Chletsos wrote: Ok so I have figured out the problem with my rsync daemon is the fact that rsync interprets // as / and therefore is not seeing this as a unc path, but rather a absolute path. This should be fixed in rsync 3.0.5pre2 as well as the latest development rsync. See: http://lists.samba.org/archive/rsync/2008-November/022127.html http://gitweb.samba.org/?p=rsync.git;a=commit;h=5436b6455728608a5b5a62da01eb74dc440f1aac -- 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
Re: Windows 2003 Cygwin Netapp remote filesystem
Ok so I have figured out the problem with my rsync daemon is the fact that rsync interprets // as / and therefore is not seeing this as a unc path, but rather a absolute path. and /cygdrive/h does not work because it is not setup outside of the cygwin environment, i.e. a windows service. I could add it to the registry for cygwin mount points, but I think a fix to the code might be better. Any suggestions in the source, where this // problem might live? On Tue, Dec 23, 2008 at 3:23 PM, Matt McCutchen m...@mattmccutchen.net wrote: Michael, please CC rsync@lists.samba.org so that others can help you and your messages are archived for others' future benefit. On Tue, 2008-12-23 at 14:02 -0700, Michael Chletsos wrote: thanks, I have perms, since I can read and write to the dir. Is the daemon running as the same user who you verified to have permission? (If you have it installed as a service, it might run as a different user. Again, I'm not familiar with the details, but the cwRsync people probably are.) Error message : chdir /cygdrive/h/test_rsync failed That should have been followed by a strerror message describing the failure, on the same line. Please post the entire line. -- 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
Re: Windows 2003 Cygwin Netapp remote filesystem
Michael Chletsos wrote: Ok so I have figured out the problem with my rsync daemon is the fact that rsync interprets // as / and therefore is not seeing this as a unc path, but rather a absolute path. and /cygdrive/h does not work because it is not setup outside of the cygwin environment, i.e. a windows service. Even though it's a windows service, it does have the cygwin environment. E.g. /cygdrive/c should still work. I've seen a similar problem with other cygwin programs running as services. E.g. the OpenSSH server, running as a windows service - you log in over SSH, but can't access network shares from that session. People have described workarounds for the OpenSSH problem, but none looked simple or worked in every situation. I could add it to the registry for cygwin mount points, but I think a fix to the code might be better. You might try that first, because it might not work, and then you'll know if there is any point trying to get // passed directly. -- Jamie -- 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
Re: Windows 2003 Cygwin Netapp remote filesystem
On Fri, 2008-12-26 at 14:13 -0700, Michael Chletsos wrote: Ok so I have figured out the problem with my rsync daemon is the fact that rsync interprets // as / and therefore is not seeing this as a unc path, but rather a absolute path. This should be fixed in rsync 3.0.5pre2 as well as the latest development rsync. See: http://lists.samba.org/archive/rsync/2008-November/022127.html http://gitweb.samba.org/?p=rsync.git;a=commit;h=5436b6455728608a5b5a62da01eb74dc440f1aac -- 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
Windows 2003 Cygwin Netapp remote filesystem
Amongst various problems I am having, I am trying to run an rsync daemon on a windows 2003 server with cygwin installed. It works fine, except that I can't seem to get the daemon to chdir to any file that is remotely mounted from my Netapp. Other windows shares or local disks chdir just fine. very weird. I think it has something to do with the automapping of shares in cygwin. Any help would be appreciated. -- 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
Re: Windows 2003 Cygwin Netapp remote filesystem
On Tue, 2008-12-23 at 12:39 -0700, Michael Chletsos wrote: Amongst various problems I am having, I am trying to run an rsync daemon on a windows 2003 server with cygwin installed. It works fine, except that I can't seem to get the daemon to chdir to any file that is remotely mounted from my Netapp. Other windows shares or local disks chdir just fine. very weird. I think it has something to do with the automapping of shares in cygwin. I wonder if you are writing the NetApp share path correctly for Cygwin. Does ls -l on the path work in the Cygwin shell? Does a local rsync to or from a NetApp-mounted directory work? You might be able to get more help from the cwRsync forum, even though you aren't using cwRsync itself, since that community is knowledgeable about rsync on Cygwin: http://www.itefix.no/i2/forum/41 -- 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
Re: Windows 2003 Cygwin Netapp remote filesystem
Amongst various problems I am having, I am trying to run an rsync daemon on a windows 2003 server with cygwin installed. It works fine, except that I can't seem to get the daemon to chdir to any file that is remotely mounted from my Netapp. Other windows shares or local disks chdir just fine. very weird. I think it has something to do with the automapping of shares in cygwin. Any help would be appreciated. -- 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
Re: Windows 2003 Cygwin Netapp remote filesystem
On Tue, 2008-12-23 at 12:55 -0700, Michael Chletsos wrote: On Tue, Dec 23, 2008 at 12:50 PM, Matt McCutchen m...@mattmccutchen.net wrote: On Tue, 2008-12-23 at 12:39 -0700, Michael Chletsos wrote: Amongst various problems I am having, I am trying to run an rsync daemon on a windows 2003 server with cygwin installed. It works fine, except that I can't seem to get the daemon to chdir to any file that is remotely mounted from my Netapp. Other windows shares or local disks chdir just fine. very weird. I think it has something to do with the automapping of shares in cygwin. I wonder if you are writing the NetApp share path correctly for Cygwin. Does ls -l on the path work in the Cygwin shell? Does a local rsync to or from a NetApp-mounted directory work? You might be able to get more help from the cwRsync forum, even though you aren't using cwRsync itself, since that community is knowledgeable about rsync on Cygwin: http://www.itefix.no/i2/forum/41 yes ls -l /cygdrive/h/ works I will try the cwRsync forum also. One more thing to check: is the daemon running as a user that has permission to access the share? (I'm not familiar with the details of Cygwin permissions, but that's one reason I thought of why ls might work but an rsync daemon wouldn't.) What error message do you get in the daemon's log? (You may need to specify a log file in the configuration if you haven't already.) -- 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
Re: Windows 2003 Cygwin Netapp remote filesystem
Michael, please CC rsync@lists.samba.org so that others can help you and your messages are archived for others' future benefit. On Tue, 2008-12-23 at 14:02 -0700, Michael Chletsos wrote: thanks, I have perms, since I can read and write to the dir. Is the daemon running as the same user who you verified to have permission? (If you have it installed as a service, it might run as a different user. Again, I'm not familiar with the details, but the cwRsync people probably are.) Error message : chdir /cygdrive/h/test_rsync failed That should have been followed by a strerror message describing the failure, on the same line. Please post the entire line. -- 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