1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

Avoid running some tests if the file system does not support holes

Otherwise, these tests fills up the entire disk (or just run very
slowly and eventually time out).
This commit is contained in:
Florian Weimer
2018-08-21 12:56:53 +02:00
parent c7627f41ba
commit aa42b3dbcb
10 changed files with 135 additions and 1 deletions

View File

@@ -65,6 +65,12 @@ void support_write_file_string (const char *path, const char *contents);
the result). */
char *support_quote_blob (const void *blob, size_t length);
/* Returns non-zero if the file descriptor is a regular file on a file
system which supports holes (that is, seeking and writing does not
allocate storage for the range of zeros). FD must refer to a
regular file open for writing, and initially empty. */
int support_descriptor_supports_holes (int fd);
/* Error-checking wrapper functions which terminate the process on
error. */