From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Mon, 3 Feb 2020 16:24:20 +0100 Subject: [LTP] [PATCH 2/3] Allow acquiring multiple loop devices In-Reply-To: <20200129144913.9889-3-mdoucha@suse.cz> References: <20200129144913.9889-1-mdoucha@suse.cz> <20200129144913.9889-3-mdoucha@suse.cz> Message-ID: <20200203152420.GA29586@dell5510> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Martin, > tst_acquire_device__() currently uses a hardcoded filename so only one loop > device can be used at a time. Allow setting arbitrary temp filename so that > multiple different loop devices can be acquired. > Signed-off-by: Martin Doucha Reviewed-by: Petr Vorel Good idea, thanks! BTW IMHO DEV_FILE should be #define DEV_FILE "test_dev.%d.img", where %d would be PID to fix clash when tests run in paralel (e.g. mkswap01.sh and df01.sh). I'll send a patch tomorrow, based on this one. Kind regards, Petr