//throws FuseException
        // if open returns a filehandle by calling FuseOpenSetter.setFh() method, it will be passed to every method that supports 'fh' argument
        public int open(String path, int flags, FuseOpenSetter openSetter)
        {
            openSetter.setFh(new Long(fs2.open(path, flags)));

            return 0;
        }
Exemplo n.º 2
0
        // if open returns a filehandle by calling FuseOpenSetter.setFh() method, it will be passed to every method that supports 'fh' argument
        //throws FuseException
        public int open(String path, int flags, FuseOpenSetter openSetter)
        {
            N n = lookup(path);

            if (n != null)
            {
                openSetter.setFh(new FH(n));
                return 0;
            }

            return Errno.ENOENT;
        }
Exemplo n.º 3
0
        public int open(ByteBuffer path, int flags, FuseOpenSetter openSetter)
        {
            String pathStr = cs.decode(path).ToString();

            if (log != null && log.IsDebugEnabled)
                log.Debug("open: path=" + pathStr + ", flags=" + flags);

            try
            {
                return handleErrno(fs3.open(pathStr, flags, openSetter), openSetter);
            }
            catch (System.Exception e)
            {
                return handleException(e);
            }
        }