D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-323 => Topic started by: rroc on April 04, 2010, 02:26:36 PM

Title: Feature request: SVN -server
Post by: rroc on April 04, 2010, 02:26:36 PM
I would like to request SVN-server as a feature for upcoming releases/add-ins.
Title: Re: Feature request: SVN -server
Post by: jamieburchell on April 04, 2010, 04:32:57 PM
I would think it's unlikely to make it in to what is esentially a consumer NAS box. Not many normal home users will be using a tool like that, most probably never heard of it. If you don't know about it already, google "fun_plug" where you can probably have your DNS run SVN.
Title: Re: Feature request: SVN -server
Post by: gunrunnerjohn on April 04, 2010, 05:13:10 PM
Hard to believe many people that have this box need version control, that seems to be a request from left field.  I also suspect it would overload the meager resources that the DNS-323 has anyway.
Title: Re: Feature request: SVN -server
Post by: jamieburchell on April 05, 2010, 01:07:34 AM
I also suspect it would overload the meager resources that the DNS-323 has anyway.

Apparently it is possible if you hack the NAS with fun_plug, but to quote "Before you install (or buy this NAS), you must know SVN is not very fast on this NAS. Don't expect speeds above 400 kB/s."
Title: Re: Feature request: SVN -server
Post by: gunrunnerjohn on April 05, 2010, 06:17:07 AM
Like I said, overload the resources of the DNS-323. :)

I think this would require a bit more horsepower to use with any kind of performance.
Title: Re: Feature request: SVN -server
Post by: m2k3423 on April 05, 2010, 06:25:33 AM
The memory and CPU of DNS-323 cannot do a good job hosting SVN, just WebDAV access alone will kill the box. More importantly, not sure common folks even understand 'version control'.  

If what you want is for the DNS-323 keeping old versions of your files, something like your recycle bin, you can actually get that with the samba in the box.  What that does is that whenever you write over the existing file, the samba server will first rename the existing file (so, very little cpu resources consumed), then write the new content. This is the VFS  feature since samba 3. DNS-323 has 3.0.24 (as of 1.08 firmware). One of my DNS-323 has this turned on, and it has been happy.  However, the recycle bin is not accessible from your typical window via 'map drive', it will actually be a special folder that contain all old versions of your over-written files.  You will need to set-up access security properly too.

However, to configure it, you will need to get into the box via telnet / ssh (dropbear), which requires you to install fun_plug.  Once you are set-up for telnet/ssh, then getting something like recycle bin is adding a  few lines of configurations in smb.conf.  Try googling 'samba VFS recycle bin' to get some idea of what needs to be added.   This is not for people who do not know system administration. Be warned that changing internal configuration file may lead to a dead DNS-323 if not done properly.
Title: Re: Feature request: SVN -server
Post by: gunrunnerjohn on April 05, 2010, 06:28:22 AM
Good information, but since there is some danger to the box implied here, I'd think more specific instructions might be worthwhile, no? ;)
Title: Re: Feature request: SVN -server
Post by: m2k3423 on April 05, 2010, 06:34:34 AM
Okay, specifics here thy come:

Add these lines to /etc/samba/smb.conf:

vfs object = recycle
recycle:repository = .recycle
recycle:directory_mode = 0777
recycle:subdir_mode = 0777
recycle:keeptree = Yes
recycle:versions = Yes
recycle:touch = No
recycle:touch_mtime = No
recycle:maxsize = 0
recycle:exclude = *.tmp,*.temp, ~$*, *.~??
recycle:exclude_dir = /.recycle
msdfs root = no

This 'recycle:keeptree = Yes' tells samba to maintain the same directory tree structure where the files were from. For example, if you deleted/overwrite a file /dir_a/subdir_b/file_overwritten, your .recycle directory will look like : /mnt/HD-a2/.recycle/dir_a/subdir_b/file_overwritten. If you change 'recycle:keeptree = No, every directory will have a .recycle, that will be ugly.  Depending on how secure you want the recycle files be, change directory mode as needed.

Again, fiddle at your own risk - the risks are yours and yours alone  ;D
Title: Re: Feature request: SVN -server
Post by: xxbeanxx on April 07, 2010, 06:26:45 AM
I use svn on my DNS-323 and am happy with it.  I only use it for small projects but I have over 30 versioned projects that I have had on there for almost two years.  The performance isn't stellar, as said, but it does what I want.

I installed it using the DNS-323 wiki instructions.  If you google it you will be able to find info.
Title: Re: Feature request: SVN -server
Post by: dl08820 on April 09, 2010, 08:19:25 AM
I used it for SVN too.  I configure SVN server on a pc using flat files that mapped to DNS-323.
Title: Re: Feature request: SVN -server
Post by: jamieburchell on April 09, 2010, 08:41:39 AM
I used it for SVN too.  I configure SVN server on a pc using flat files that mapped to DNS-323.

I think the OP was referring to running SVN server on the DNS-323, not on a PC.