search for: test_blkid_p_opt

Displaying 1 result from an estimated 1 matches for "test_blkid_p_opt".

Did you mean: test_blkid_p_i_opt
2011 Dec 05
1
[PATCH] blkid: split the RHEL5 which can't support some options
...ar *device) return get_blkid_tag (device, "UUID"); } -char ** -do_blkid(const char *device) +/* RHEL5 blkid doesn't have the -p(partition info) option and the + * -i(I/O limits) option so we must test for these options the first + * time the function is called. + */ +static int +test_blkid_p_opt(void) +{ + static int result = -1; + char *err = NULL; + + int r = commandr (NULL, &err, "blkid", "-p", "/dev/null", NULL); + if (r == -1) { + reply_with_error("Could not run 'blkid' command"); + free(err); + return -1; + } + + if (...