diff options
author | 2013-02-14 14:10:36 -0400 | |
---|---|---|
committer | 2013-02-14 14:15:26 -0400 | |
commit | 177245deb6ee3271eb44d77c2b0cd722755b2c3f (patch) | |
tree | 876c4844937c831470192d367123f581fb6cc3d8 /Command/Fsck.hs | |
parent | 4e2d50d2e4c9b4d3487c24042b733d02c2f4dd46 (diff) |
crippled filesystem support, probing and initial support
git annex init probes for crippled filesystems, and sets direct mode, as
well as `annex.crippledfilesystem`.
Avoid manipulating permissions of files on crippled filesystems.
That would likely cause an exception to be thrown.
Very basic support in Command.Add for cripped filesystems; avoids the lock
down entirely since doing it needs both permissions and hard links.
Will make this better soon.
Diffstat (limited to 'Command/Fsck.hs')
-rw-r--r-- | Command/Fsck.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Command/Fsck.hs b/Command/Fsck.hs index 8f33493b5..666245517 100644 --- a/Command/Fsck.hs +++ b/Command/Fsck.hs @@ -203,7 +203,8 @@ fixLink key file = do showNote "fixing content location" dir <- liftIO $ parentDir <$> absPath file let content = absPathFrom dir have - liftIO $ allowWrite (parentDir content) + unlessM crippledFileSystem $ + liftIO $ allowWrite (parentDir content) moveAnnex key content showNote "fixing link" |