Repository on CIFS

Augie Fackler raf at durin42.com
Sun Nov 24 12:55:00 UTC 2013


On Nov 24, 2013, at 7:37 AM, Koen Vermeer <koen at vermeer.tv> wrote:

> On 11/23/2013 09:08 PM, Koen Vermeer wrote:
>> However, I was trying to store them on a CIFS mount. I've only done some quick tests, but I ran into a problem: It seems that when folders need to be created, it fails. Repeating the same operation (sometimes a few times) works. I was wondering if I'm just missing some detail, or that this setup is not expected to work.
> I guess some more details may be useful.
> 
> Our supported infrastructure is Windows-only. I have been able to get a VM that I can administer myself, and set up Debian on it. There, hgweb is running behind nginx, which works all fine. But I'd rather put the repositories themselves on a part of the supported infrastructure, just in case anything happens to my VM. So I got a share on some Windows server, that I can use for that purpose. That share is then backup up in a similar way as all other data on our premises.
> 
> As mentioned, I was unable to figure out what specific properties of the filesystem are needed and whether CIFS shares support a sufficient set of these properties. Please note that in this setup different users are not accessing the same shared folder (I did find some comments that such a setup will not work as expected) - all access is through the server. I can try to ask for an NFS share. But again, I was unable to find information on whether this would work or not.

So, as Martin eluded to, you should be okay if you can ensure only one person is ever concurrently writing to any given repository on the CIFS share. 

> An alternative would be to just have the repositories on the VM and back them up to the share. But that adds another layer, so I'd rather not do that.

Could you run a web server and use an http-based sharing scheme with hgweb? I know there's a way to run hgweb inside IIS, although that's where my knowledge ends.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20131124/0d2148fd/attachment.asc>


More information about the Mercurial mailing list