public int getxattr(ByteBuffer path, ByteBuffer name, ByteBuffer value, int position) {
        if (xattrSupport == null) {
            return handleErrno(Errno.ENOTSUPP);
        }

        String pathStr = cs.decode(path).toString();
        String nameStr = cs.decode(name).toString();

        if (log != null && log.isDebugEnabled()) {
            log.debug("getxattr: path=" + pathStr + ", name=" + nameStr);
        }

        try {
            return handleErrno(xattrSupport.getxattr(pathStr, nameStr, value, position), value);
        }
        catch(Exception e) {
            return handleException(e);
        }
    }