[LTP] [PATCH 1/2] lib/tst_mkfs: new tst_mkfs_sized function for create appointed size fs
Cyril Hrubis
chrubis@suse.cz
Wed Mar 9 14:09:21 CET 2016
Hi!
> +void tst_mkfs_sized(void (cleanup_fn)(void), const char *dev,
> + const char *fs_type, const char *const fs_opts[],
> + const char *fssize, const char *blocksize);
> +
> +#define tst_mkfs(cleanup_fn, dev, fs_type, fs_opts) \
> + tst_mkfs_sized(cleanup_fn, dev, fs_type, fs_opts, NULL, NULL)
Also make this static inline function instead. We only use such macros
for SAFE_MACROS() where we have to pass correct __FILE__ and __LINE__,
which is very special occasion.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list