/* * Ignore the checkpatch warning, we must read from x but don't want to do * anything with it in order to trigger a read page fault. We therefore must use * volatile to stop the compiler from optimising this away.
*/ #define FORCE_READ(x) (*(constvolatile typeof(x) *)&(x))
/* * Represents an open fd and PROCMAP_QUERY state for binary (via ioctl) * /proc/$pid/[s]maps lookup.
*/ struct procmap_fd { int fd; struct procmap_query query;
};
/* * Plan 9 FS has bugs (at least on QEMU) where certain operations fail with * ENOENT on unlinked files. See * https://gitlab.com/qemu-project/qemu/-/issues/103 for some info about such * bugs. There are rumours of NFS implementations with similar bugs. * * Ideally, tests should just detect filesystems known to have such issues and * bail early. But 9pfs has the additional "feature" that it causes fstatfs to * pass through the f_type field from the host filesystem. To avoid having to * scrape /proc/mounts or some other hackery, tests can call this function when * it seems such a bug might have been encountered.
*/ staticinlinevoid skip_test_dodgy_fs(constchar *op_name)
{
ksft_test_result_skip("%s failed with ENOENT. Filesystem might be buggy (9pfs?)\n", op_name);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.