From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [OT] Git plus Syncthing: breaking hard links Date: Tue, 05 Apr 2016 08:45:42 -0400 Message-ID: <87bn5o1ax5.fsf@pierrot.dokosmarshall.org> References: <87h9fgbm2j.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anQMv-0004Ay-JQ for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 08:46:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anQMp-0005qZ-PV for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 08:46:05 -0400 Received: from plane.gmane.org ([80.91.229.3]:48774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anQMp-0005qU-Ix for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 08:45:59 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1anQMj-0004Do-6H for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 14:45:53 +0200 Received: from pool-74-104-149-70.bstnma.fios.verizon.net ([74.104.149.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Apr 2016 14:45:53 +0200 Received: from ndokos by pool-74-104-149-70.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Apr 2016 14:45:53 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric Abrahamsen writes: > This isn't really a Org question at all, but you all are smart and > friendly people, and are likely to have run into this situation before. > So I'm trying here before I turn to StackOverflow! > > I have Org files in a git repo, synced across two Linux machines. At the > same time, I have a few directories on these computers that I sync with > colleagues, via Syncthing. > > One of these colleagues also uses Org, so instead of giving her access > to my Org git repo, which would be a bit too much exposure, I hardlink > some of the Org files into the Syncthing directories, and she accesses > them there. With auto-revert-mode turned on, it's not too bad. > > Except that the hardlinks keep breaking! There are so many different > systems interacting here that I have no idea where to even start > looking. She's on a Mac, not Linux, and uses a fairly recent version of > Emacs, plus Org from the ELPA package. She is *not* using git on her > machine, just Syncthing and Emacs. > How do the hardlinks break exactly? Hardlinks to a file are limited to the same filesystem: a file with inode number N has essentially two or more directory entries, with different names associated to the same inode number. Syncthing certainly cannot maintain that as it copies the file to the cloud and back, so there seem to be plenty of opportunities for breakage, but it's not clear which one(s) obtain. > I'm inclined to blame Syncthing, but I really don't know where to start > debugging. If any of you have any relevant experience, or any advice > about where to look, that would be much appreciated. Otherwise, please > excuse the off-topic post... > -- Nick