static int mount_local_setxattr (const char *path, const char *name, const char *value, size_t size, int flags) { int r; DECL_G (); DEBUG_CALL ("%s, %s, %p, %zu", path, name, value, size); if (g->ml_read_only) return -EROFS; dir_cache_invalidate (g, path); /* XXX Underlying guestfs(3) API doesn't understand the flags. */ r = guestfs_lsetxattr (g, name, value, size, path); if (r == -1) RETURN_ERRNO; return 0; }
static int fg_setxattr (const char *path, const char *name, const char *value, size_t size, int flags) { TRACE_CALL ("%s, %s, %p, %zu", path, name, value, size); int r; if (read_only) return -EROFS; dir_cache_invalidate (path); /* XXX Underlying guestfs(3) API doesn't understand the flags. */ r = guestfs_lsetxattr (g, name, value, size, path); if (r == -1) return error (); return 0; }