char **ret = NULL;
int size = 0, alloc = 0;
- RESOLVE_DEVICE (device, return NULL);
-
r = command (&out, &err, "/sbin/tune2fs", "-l", device, NULL);
if (r == -1) {
reply_with_error ("tune2fs: %s", err);
int r;
char *err;
- RESOLVE_DEVICE (device, return -1);
-
r = command (NULL, &err, "/sbin/e2label", device, label, NULL);
if (r == -1) {
reply_with_error ("e2label: %s", err);
int r, len;
char *out, *err;
- RESOLVE_DEVICE (device, return NULL);
-
r = command (&out, &err, "/sbin/e2label", device, NULL);
if (r == -1) {
reply_with_error ("e2label: %s", err);
int r;
char *err;
- RESOLVE_DEVICE (device, return -1);
-
r = command (NULL, &err, "/sbin/tune2fs", "-U", uuid, device, NULL);
if (r == -1) {
reply_with_error ("tune2fs -U: %s", err);
int r;
char *out, *err, *p, *q;
- RESOLVE_DEVICE (device, return NULL);
-
/* It's not so straightforward to get the volume UUID. We have
* to use tune2fs -l and then look for a particular string in
* the output.
char *err;
int r;
- RESOLVE_DEVICE (device, return -1);
-
r = command (NULL, &err, "/sbin/resize2fs", device, NULL);
if (r == -1) {
reply_with_error ("resize2fs: %s", err);
char *err;
int r;
- RESOLVE_DEVICE (device, return -1);
-
r = command (NULL, &err, "/sbin/e2fsck", "-p", "-f", device, NULL);
if (r == -1) {
reply_with_error ("e2fsck: %s", err);