search for: rtextsize_s

Displaying 2 results from an estimated 2 matches for "rtextsize_s".

Did you mean: rtextsize
2012 Jul 31
1
[PATCH] xfs: add new api xfs-growfs
...int64_t rtextsize, int32_t maxpct) +{ + +#define MAX_ARGS 64 + + int r; + char *buf; + char *out = NULL, *err = NULL; + char **lines = NULL; + guestfs_int_xfsinfo *ret = NULL; + const char *argv[MAX_ARGS]; + char datasize_s[64]; + char logsize_s[64]; + char rtsize_s[64]; + char rtextsize_s[64]; + char maxpct_s[32]; + size_t i = 0; + + buf = sysroot_path (path); + if (buf == NULL) { + reply_with_perror ("malloc"); + return NULL; + } + + ADD_ARG (argv, i, "xfs_growfs"); + + /* Optional arguments */ + if (!(optargs_bitmask & GUESTFS_XFS_GROWFS_DATAS...
2015 Jul 17
1
[PATCH] daemon: add a space after func/macro to fit code-style
...intf (rtsize_s, sizeof rtsize_s, "%" PRIi64, rtsize); ADD_ARG (argv, i, "-R"); ADD_ARG (argv, i, rtsize_s); } @@ -428,7 +428,7 @@ do_xfs_growfs (const char *path, reply_with_error ("rtextsize must be >= 0"); return -1; } - snprintf(rtextsize_s, sizeof rtextsize_s, "%" PRIi64, rtextsize); + snprintf (rtextsize_s, sizeof rtextsize_s, "%" PRIi64, rtextsize); ADD_ARG (argv, i, "-e"); ADD_ARG (argv, i, rtextsize_s); } @@ -438,7 +438,7 @@ do_xfs_growfs (const char *path, reply_with_error (&q...