Ejemplo n.º 1
0
        //throws FuseException
        public int statfs(FuseStatfsSetter statfsSetter)
        {
            FuseStatfs statfs = fs2.statfs();

            statfsSetter.set(
               statfs.blockSize,
               statfs.blocks,
               statfs.blocksFree,
               statfs.blocksAvail,
               statfs.files,
               statfs.filesFree,
               statfs.namelen
            );

            return 0;
        }
Ejemplo n.º 2
0
        //throws FuseException
        public int statfs(FuseStatfsSetter statfsSetter)
        {
            statfsSetter.set(
               BLOCK_SIZE,
               1000,
               200,
               180,
               N.nfiles,
               0,
               NAME_LENGTH
            );

            return 0;
        }
Ejemplo n.º 3
0
        public int statfs(FuseStatfsSetter statfsSetter)
        {
            if (log != null && log.IsDebugEnabled)
                log.Debug("statfs");

            try
            {
                return handleErrno(fs3.statfs(statfsSetter), statfsSetter);
            }
            catch (System.Exception e)
            {
                return handleException(e);
            }
        }