コード例 #1
0
ファイル: FakeFilesystem.cs プロジェクト: gadfly/nofs
        // 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;
        }
コード例 #2
0
        //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;
        }