From 0fecc645618380829406002fddc80b34be56c5f2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 2 Mar 2018 12:03:40 +0000 Subject: Increase rlimits before dropping root --- ioreplay/src/mounts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ioreplay/src/mounts.c') diff --git a/ioreplay/src/mounts.c b/ioreplay/src/mounts.c index ac6f1d4..afa8376 100644 --- a/ioreplay/src/mounts.c +++ b/ioreplay/src/mounts.c @@ -111,7 +111,7 @@ void mounts_destroy(mounts_s *m) void mounts_trash(mounts_s *m) { options_s *opts = m->opts; - drop_root(opts->user); + set_limits_drop_root(opts->user); Put("Moving all old files to trash (of previous tests)..."); struct timeval tv; @@ -159,7 +159,7 @@ void mounts_trash(mounts_s *m) void mounts_purge(mounts_s *m) { options_s *opts = m->opts; - drop_root(opts->user); + set_limits_drop_root(opts->user); Out("Purging all data from the following directories:"); -- cgit v1.2.3