static int mount_local_rmdir (const char *path) { int r; DECL_G (); DEBUG_CALL ("%s", path); if (g->ml_read_only) return -EROFS; dir_cache_invalidate (g, path); r = guestfs_rmdir (g, path); if (r == -1) RETURN_ERRNO; return 0; }
static int fg_rmdir (const char *path) { TRACE_CALL ("%s", path); int r; if (read_only) return -EROFS; dir_cache_invalidate (path); r = guestfs_rmdir (g, path); if (r == -1) return error (); return 0; }