Skip to content

Commit

Permalink
stress_acl: rename acl functions, prefix with stress_
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Dec 20, 2023
1 parent 3a353ea commit 31a9ce6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions stress-acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ static const int stress_acl_entries[] = {
};

/*
* acl_delete_all()
* stress_acl_delete_all()
* try to delete all acl entries on filename
*/
static inline void acl_delete_all(const char *filename)
static inline void stress_acl_delete_all(const char *filename)
{
acl_t acl;
acl_entry_t entry;
Expand Down Expand Up @@ -196,10 +196,10 @@ static int stress_acl_setup(
}

/*
* acl_set()
* stress_acl_exercise()
* exercise all valid an invalid acls on filename
*/
static int acl_set(
static int stress_acl_exercise(
stress_args_t *args,
const char *filename,
acl_t *acls,
Expand Down Expand Up @@ -311,12 +311,12 @@ static int stress_acl(stress_args_t *args)
stress_set_proc_state(args->name, STRESS_STATE_RUN);

do {
acl_delete_all(filename);
rc = acl_set(args, filename, acls, acl_count, metrics);
stress_acl_delete_all(filename);
rc = stress_acl_exercise(args, filename, acls, acl_count, metrics);
if (rc != EXIT_SUCCESS)
break;
} while (stress_continue(args));
acl_delete_all(filename);
stress_acl_delete_all(filename);

if (args->instance == 0)
pr_inf("%s: %zd unique ACLs used\n", args->name, acl_count);
Expand Down

0 comments on commit 31a9ce6

Please sign in to comment.