X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/fc46845363cf63e300f07e39332c23cf122c43d3..bdc54107c5a7268f3a700335389bf494df136bf7:/sbin/hammer/cmd_cleanup.c diff --git a/sbin/hammer/cmd_cleanup.c b/sbin/hammer/cmd_cleanup.c index 8075324d95..83426842ef 100644 --- a/sbin/hammer/cmd_cleanup.c +++ b/sbin/hammer/cmd_cleanup.c @@ -724,6 +724,8 @@ dividing_slash(const char *path) * Periods in minutes, hours, or days are assumed to have been crossed * if the local time crosses a minute, hour, or day boundary regardless * of how close the last operation actually was. + * + * If ForceOpt is set always return true. */ static int check_period(const char *snapshots_path, const char *cmd, int arg1, @@ -739,6 +741,12 @@ check_period(const char *snapshots_path, const char *cmd, int arg1, time(savep); localtime_r(savep, &tp1); + /* + * Force run if -F + */ + if (ForceOpt) + return(1); + /* * Retrieve the start time of the last successful operation. */