Lines Matching +full:has +full:- +full:flag
1 // SPDX-License-Identifier: GPL-2.0-or-later
14 * - STATX_ATTR_COMPRESSED: The file is compressed by the filesystem.
15 * - STATX_ATTR_IMMUTABLE: The file cannot be modified.
16 * - STATX_ATTR_APPEND: The file can only be opened in append mode for writing.
17 * - STATX_ATTR_NODUMP: File is not a candidate for backup when a backup
21 * First directory has all flags set. Second directory has no flags set.
38 static void run(unsigned int flag) in run() argument
42 TEST(statx(AT_FDCWD, flag ? TESTDIR_FLAGGED : TESTDIR_UNFLAGGED, 0, 0, &buf)); in run()
46 flag ? TESTDIR_FLAGGED : TESTDIR_UNFLAGGED); in run()
50 flag ? TESTDIR_FLAGGED : TESTDIR_UNFLAGGED); in run()
54 tst_res(flag ? TPASS : TFAIL, in run()
55 "STATX_ATTR_COMPRESSED flag is set"); in run()
57 tst_res(flag ? TFAIL : TPASS, in run()
58 "STATX_ATTR_COMPRESSED flag is not set"); in run()
62 tst_res(flag ? TPASS : TFAIL, in run()
63 "STATX_ATTR_APPEND flag is set"); in run()
65 tst_res(flag ? TFAIL : TPASS, in run()
66 "STATX_ATTR_APPEND flag is not set"); in run()
70 tst_res(flag ? TPASS : TFAIL, in run()
71 "STATX_ATTR_IMMUTABLE flag is set"); in run()
73 tst_res(flag ? TFAIL : TPASS, in run()
74 "STATX_ATTR_IMMUTABLE flag is not set"); in run()
78 tst_res(flag ? TPASS : TFAIL, in run()
79 "STATX_ATTR_NODUMP flag is set"); in run()
81 tst_res(flag ? TFAIL : TPASS, in run()
82 "STATX_ATTR_NODUMP flag is not set"); in run()
98 if (!strcmp(tst_device->fs_type, "ntfs")) { in caid_flags_setup()
130 if (TST_RET == -1) in setup()