Re: Possibility to porting Rsync to NT and other platforms

2009-06-12 Thread Leen Besselink
Jamie Lokier wrote:

 There is actually a threaded-rsync patch, at least in rsync-2.6.7.
 (I haven't checked if rsync-3.x has a threaded patch).
 
 I use it every day on uClinux, where fork() is not possible.  (The

Ahh, I didn't know that or checked that (yet).

 Threads are also needed on VMS I think.
 

I definitly don't know much about that.

Anyway, good luck.  :-)

-- 
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: Possibility to porting Rsync to NT and other platforms

2009-06-10 Thread John E. Malmberg

Hasanat Kazmi wrote:

Hello,
I am looking into possibilities of porting RSync for windows. Does anybody
have an idea that which libraries and dependencies RSync uses which can not
be compiled on windows (so thats why we use cygwin)


I have not looked at this in a few years, but the issues is more that 
rsync initializes some data structures and then forks off processes.


But it is doable.  I make an experimental proof of concept port where I 
converted it to use posix threads instead of forked processes.


With the code base that I worked on, the main thing was identifying 
which of the common or static variables are modified by more than one 
thread.


The experimental version was working well enough that I could keep a 
local copy of the rsync source code in sync on my system with it.


I had set up a system to use editor macros to re-apply my changes to the 
lastest source, but had to move on to other things before I completed 
the port.


I currently use the experimental port binary several times a week for 
keeping my system up to date with blead-perl source.


Good Luck,
-John
wb8...@qsl.net
Personal Opinion Only

--
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: Possibility to porting Rsync to NT and other platforms

2009-06-10 Thread Leen Besselink
John E. Malmberg wrote:
 Hasanat Kazmi wrote:
 Hello,
 I am looking into possibilities of porting RSync for windows. Does
 anybody
 have an idea that which libraries and dependencies RSync uses which
 can not
 be compiled on windows (so thats why we use cygwin)
 
 I have not looked at this in a few years, but the issues is more that
 rsync initializes some data structures and then forks off processes.
 
 But it is doable.  I make an experimental proof of concept port where I
 converted it to use posix threads instead of forked processes.
 
 With the code base that I worked on, the main thing was identifying
 which of the common or static variables are modified by more than one
 thread.
 
 The experimental version was working well enough that I could keep a
 local copy of the rsync source code in sync on my system with it.
 
 I had set up a system to use editor macros to re-apply my changes to the
 lastest source, but had to move on to other things before I completed
 the port.
 
 I currently use the experimental port binary several times a week for
 keeping my system up to date with blead-perl source.
 

I know there is also this old sourceforge project from 2005:

http://rsyncwin32.sourceforge.net/

Don't know if it's useful to you.

 Good Luck,
 -John
 wb8...@qsl.net
 Personal Opinion Only
 

-- 
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: Possibility to porting Rsync to NT and other platforms

2009-05-19 Thread Mac User FR
Did you try compiling your java code to native machine code, with gcj http://gcc.gnu.org/java/ 
 ?


Le 19 mai 09 à 05:26, Hasanat Kazmi a écrit :

I want to embed it into a program. So putting in these two will  
create licensing issues for me. Any guide of those specif portions  
of code where it makes system calls? I have ported rsync to java (I  
used same rolling algorithm but used other hashing) but it isn't  
fast enough, seems I have to make a native binary version.


On Tue, May 19, 2009 at 12:58 AM, Mac User FR macuse...@free.fr  
wrote:
I'm not on the code of rsync, but it is heavily coded using Unix  
system calls. Porting to NT would say to start another program from  
the scratch, taking the only the delta algorithm and rsync protocol  
compatibility. Good luck with it!


But, as Cyril says, why would you invest yourself on such a project  
and not only use rsync over cygwin? I use it and with cygwin 1.7  
there is no filename length limitation. It works fine.


Best regards,

Vitorio

Le 18 mai 09 à 19:39, Hasanat Kazmi a écrit :

But cwRsync is basically rsync and cygwin packed into one. Its not  
native to NT.
I am interested to make a native version for NT, a developer who  
knows about dependencies of rsync can help me.
Do you have any idea about rsync development or do you know anyone  
who knows these informations?


On Mon, May 18, 2009 at 9:54 PM, Cyril cyril@gmail.com wrote:
i'm using cwRsync on win32 and rsync on linux, did you give a try  
to cwrsync ?


Cheers,
CyD

On Mon, May 18, 2009 at 2:00 PM, Hasanat Kazmi hasanatka...@gmail.com 
 wrote:

Hello,
I am looking into possibilities of porting RSync for windows. Does  
anybody have an idea that which libraries and dependencies RSync  
uses which can not be compiled on windows (so thats why we use  
cygwin)


Regards
Hasanat Kazmi
--
hasanatka...@gmail.com
I hate Capitalism,so naturally I love Open Source -- Hasanat Kazmi
+923464362473

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




--
hasanatka...@gmail.com
I hate Capitalism,so naturally I love Open Source -- Hasanat Kazmi
+923464362473
--
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





--
hasanatka...@gmail.com
I hate Capitalism,so naturally I love Open Source -- Hasanat Kazmi
+923464362473


-- 
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: Possibility to porting Rsync to NT and other platforms

2009-05-19 Thread Mac User FR
Well, in this case it seems clear to me that you will have to rewrite  
rsync entirely, keeping the delta algorithm and network protocol...  
Such a huge work! Good luck.


Le 19 mai 09 à 17:30, Hasanat Kazmi a écrit :

I didn't but even if I do, I wont be able to use some of the native  
functions of respective OS (which I will have to use to decorate the  
software - outside the domain of Rsync) e.g. I will  use windows  
forms, not if I compile java to binary, ill lose windows forms thing


On Tue, May 19, 2009 at 5:42 PM, Mac User FR macuse...@free.fr  
wrote:
Did you try compiling your java code to native machine code, with  
gcj http://gcc.gnu.org/java/ ?


Le 19 mai 09 à 05:26, Hasanat Kazmi a écrit :

I want to embed it into a program. So putting in these two will  
create licensing issues for me. Any guide of those specif portions  
of code where it makes system calls? I have ported rsync to java (I  
used same rolling algorithm but used other hashing) but it isn't  
fast enough, seems I have to make a native binary version.


On Tue, May 19, 2009 at 12:58 AM, Mac User FR macuse...@free.fr  
wrote:
I'm not on the code of rsync, but it is heavily coded using Unix  
system calls. Porting to NT would say to start another program from  
the scratch, taking the only the delta algorithm and rsync protocol  
compatibility. Good luck with it!


But, as Cyril says, why would you invest yourself on such a project  
and not only use rsync over cygwin? I use it and with cygwin 1.7  
there is no filename length limitation. It works fine.


Best regards,

Vitorio

Le 18 mai 09 à 19:39, Hasanat Kazmi a écrit :

But cwRsync is basically rsync and cygwin packed into one. Its not  
native to NT.
I am interested to make a native version for NT, a developer who  
knows about dependencies of rsync can help me.
Do you have any idea about rsync development or do you know anyone  
who knows these informations?


On Mon, May 18, 2009 at 9:54 PM, Cyril cyril@gmail.com wrote:
i'm using cwRsync on win32 and rsync on linux, did you give a try  
to cwrsync ?


Cheers,
CyD

On Mon, May 18, 2009 at 2:00 PM, Hasanat Kazmi hasanatka...@gmail.com 
 wrote:

Hello,
I am looking into possibilities of porting RSync for windows. Does  
anybody have an idea that which libraries and dependencies RSync  
uses which can not be compiled on windows (so thats why we use  
cygwin)


Regards
Hasanat Kazmi
--
hasanatka...@gmail.com
I hate Capitalism,so naturally I love Open Source -- Hasanat Kazmi
+923464362473

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




--
hasanatka...@gmail.com
I hate Capitalism,so naturally I love Open Source -- Hasanat Kazmi
+923464362473
--
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





--
hasanatka...@gmail.com
I hate Capitalism,so naturally I love Open Source -- Hasanat Kazmi
+923464362473





--
hasanatka...@gmail.com
I hate Capitalism,so naturally I love Open Source -- Hasanat Kazmi
+923464362473


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

Possibility to porting Rsync to NT and other platforms

2009-05-18 Thread Hasanat Kazmi
Hello,
I am looking into possibilities of porting RSync for windows. Does anybody
have an idea that which libraries and dependencies RSync uses which can not
be compiled on windows (so thats why we use cygwin)

Regards
Hasanat Kazmi
-- 
hasanatka...@gmail.com
I hate Capitalism,so naturally I love Open Source -- Hasanat Kazmi
+923464362473
-- 
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: Possibility to porting Rsync to NT and other platforms

2009-05-18 Thread Cyril
i'm using cwRsync on win32 and rsync on linux, did you give a try to cwrsync
?

Cheers,
CyD

On Mon, May 18, 2009 at 2:00 PM, Hasanat Kazmi hasanatka...@gmail.comwrote:

 Hello,
 I am looking into possibilities of porting RSync for windows. Does anybody
 have an idea that which libraries and dependencies RSync uses which can not
 be compiled on windows (so thats why we use cygwin)

 Regards
 Hasanat Kazmi
 --
 hasanatka...@gmail.com
 I hate Capitalism,so naturally I love Open Source -- Hasanat Kazmi
 +923464362473

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

-- 
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: Possibility to porting Rsync to NT and other platforms

2009-05-18 Thread Hasanat Kazmi
But cwRsync is basically rsync and cygwin packed into one. Its not native to
NT.
I am interested to make a native version for NT, a developer who knows about
dependencies of rsync can help me.
Do you have any idea about rsync development or do you know anyone who knows
these informations?

On Mon, May 18, 2009 at 9:54 PM, Cyril cyril@gmail.com wrote:

 i'm using cwRsync on win32 and rsync on linux, did you give a try to
 cwrsync ?

 Cheers,
 CyD

 On Mon, May 18, 2009 at 2:00 PM, Hasanat Kazmi hasanatka...@gmail.comwrote:

 Hello,
 I am looking into possibilities of porting RSync for windows. Does anybody
 have an idea that which libraries and dependencies RSync uses which can not
 be compiled on windows (so thats why we use cygwin)

 Regards
 Hasanat Kazmi
 --
 hasanatka...@gmail.com
 I hate Capitalism,so naturally I love Open Source -- Hasanat Kazmi
 +923464362473

 --
 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.htmlhttp://www.catb.org/%7Eesr/faqs/smart-questions.html





-- 
hasanatka...@gmail.com
I hate Capitalism,so naturally I love Open Source -- Hasanat Kazmi
+923464362473
-- 
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