Пример #1
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;
        }
        //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;
        }