1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (c) 2013 Oracle and/or its affiliates. All Rights Reserved. 4 * Author: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> 5 */ 6 7/* 8 * Contains common content for all swapon/swapoff tests 9 */ 10 11#ifndef __LIBSWAP_H__ 12#define __LIBSWAP_H__ 13 14/* 15 * Make a swap file 16 */ 17int make_swapfile(const char *swapfile, int safe); 18 19/* 20 * Check swapon/swapoff support status of filesystems or files 21 * we are testing on. 22 */ 23void is_swap_supported(const char *filename); 24#endif /* __LIBSWAP_H__ */ 25