search for: guestfs_int_fadvise_normal

Displaying 3 results from an estimated 3 matches for "guestfs_int_fadvise_normal".

2016 Apr 14
3
More posix_fadvise stuff.
More posix_fadvise stuff, and document what Linux really does with these calls. Also fixes a nasty bug in virt-builder. Rich.
2016 Dec 24
0
[PATCH] lib: Use a common function to validate strings.
...rive_name (size_t index, char *ret); extern ssize_t guestfs_int_drive_index (const char *); extern int guestfs_int_is_true (const char *str); +extern bool guestfs_int_string_is_valid (const char *str, size_t min_length, size_t max_length, bool alpha, bool digit, const char *extra); //extern void guestfs_int_fadvise_normal (int fd); extern void guestfs_int_fadvise_sequential (int fd); extern void guestfs_int_fadvise_random (int fd); diff --git a/src/unit-tests.c b/src/unit-tests.c index 06d4d27..e22a61e 100644 --- a/src/unit-tests.c +++ b/src/unit-tests.c @@ -433,6 +433,45 @@ test_stringsbuf (void) guestfs_close...
2016 Dec 24
2
[PATCH] lib: Use a common function to validate strings.
As discussed in the thread on validating $TERM, it would be good to have a common function to do this. This is such a function. The main advantage is it includes unit tests which the previous functions did not. Rich.