search for: btrfsfsshow_device

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

2015 Jun 11
2
[PATCH] New API: btrfs_filesystem_show_all
...((this->btrfsfsshow_label = strdup (label_tmp)) == NULL) + goto error; + + if ((p = strstr (lines[i], "path ")) == NULL) { + reply_with_error ("No path field found"); + goto error; + } + p += strlen ("path "); + if ((this->btrfsfsshow_device = strdup (p)) == NULL) + goto error; + if (sscanf (line, "\tdevid %4d size %9s used %9s path", + &this->btrfsfsshow_devid, + this->btrfsfsshow_total_bytes, + this->btrfsfsshow_bytes_used) != 3) { + reply_with_error...
2015 Jun 11
1
Re: [PATCH] New API: btrfs_filesystem_show_all
...)) == NULL) { > > "line" is already set as lines[i], isn't it? > Fine. > > + reply_with_error ("No path field found"); > > + goto error; > > + } > > + p += strlen ("path "); > > + if ((this->btrfsfsshow_device = strdup (p)) == NULL) > > + goto error; > > + if (sscanf (line, "\tdevid %4d size %9s used %9s path", > > + &this->btrfsfsshow_devid, > > + this->btrfsfsshow_total_bytes, > > + this->btrfsfss...
2015 Jun 11
0
Re: [PATCH] New API: btrfs_filesystem_show_all
...if ((p = strstr (lines[i], "path ")) == NULL) { "line" is already set as lines[i], isn't it? > + reply_with_error ("No path field found"); > + goto error; > + } > + p += strlen ("path "); > + if ((this->btrfsfsshow_device = strdup (p)) == NULL) > + goto error; > + if (sscanf (line, "\tdevid %4d size %9s used %9s path", > + &this->btrfsfsshow_devid, > + this->btrfsfsshow_total_bytes, > + this->btrfsfsshow_bytes_used) != 3) {...