1 /* SPDX-License-Identifier: GPL-2.0-or-later 2 * Copyright (c) 2016 Cyril Hrubis <chrubis@suse.cz> 3 */ 4 5 #ifndef TST_MKFS_H__ 6 #define TST_MKFS_H__ 7 8 /* 9 * @dev: path to a device 10 * @fs_type: filesystem type 11 * @fs_opts: NULL or NULL terminated array of extra mkfs options 12 * @extra_opts: NULL or NULL terminated array of extra mkfs options 13 */ 14 void tst_mkfs_(const char *file, const int lineno, void (cleanup_fn)(void), 15 const char *dev, const char *fs_type, 16 const char *const fs_opts[], const char *const extra_opts[]); 17 18 #define SAFE_MKFS(device, fs_type, fs_opts, extra_opts) \ 19 tst_mkfs_(__FILE__, __LINE__, NULL, device, fs_type, \ 20 fs_opts, extra_opts) 21 22 #endif /* TST_MKFS_H__ */ 23