                 data.freeMem = line
                 callback null, data
 
+    # Try to get disk infos from the Cozy controller (it can access to the
+    # couch configuration file and guess on which fs it is located). If it
+    # fails it tries to make a 'df -h' itself and guess that couch is located
+    # in the / fs
     getDiskInfos: (callback) ->
         @controllerClient.client.get 'diskinfo', (err, res, body) ->
             if err or res.statusCode isnt 200

            else
                callback null, body

    isEnoughMemory: (callback) ->
        @getMemoryInfos (err, data) =>
            if err then callback err

                data.usedDiskSpace = usedSpace
        data

    # Return memory information from a complex free command (remove useless
    # information)
    getMemoryInfos: (callback) ->
        data = totalMem: os.totalmem() / (1024)
        exec freeMemCmd, (err, resp) ->
