Moved lvm related functions from `$SRC/glusterd2/snapshot/lvm`
and `$SRC/plugins/device/deviceutils/` to `$SRC/pkg/lvmutils`
Also moved fs related functions from `plugins/deviceutils` to
`$SRC/pkg/fsutils`.
Fixes: #1187
Signed-off-by: Aravinda VK <avishwan@redhat.com>
A query string hash (QSH) is an important technique
to prevent URL tampering and secure HTTP requests,
When a Client makes a request without a QSH claim,
or with a bad QSH claim (one that doesn’t match
the request), then the glusterd2 will respond with
HTTP status 401 Unauthorized
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
The err string returned by `exec.Command.{Run,Output}` will
not contains `stderr`, Output in log/CLI will just display `exited with
status 1`. This patch adds the content of `stderr` along with the error
message.
Signed-off-by: Aravinda VK <avishwan@redhat.com>
* Separated brick validation step from the step which modified it by
setting xattrs.
* Added rollback functions.
Signed-off-by: Prashanth Pai <ppai@redhat.com>