Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1474613 Details for
Bug 1591634
Snapshots fail when underlying bricks are btrfs
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch
glusterd-snapshot_c.patch (text/plain), 1.36 KB, created by
Evili del Rio
on 2018-08-09 09:13:44 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Evili del Rio
Created:
2018-08-09 09:13:44 UTC
Size:
1.36 KB
patch
obsolete
>diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c >index a47b921b3..67678e56d 100644 >--- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c >+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c >@@ -5192,6 +5192,19 @@ glusterd_update_fs_label (glusterd_brickinfo_t *brickinfo) > * file-system label */ > runner_add_args (&runner, "tune2fs", "-L", label, > brickinfo->device_path, NULL); >+ } else if (0 == strcmp (brickinfo->fstype, "btrfs")) { >+ /* BTRFS label is of size 256. Therefore we should truncate the >+ * label to 256 bytes*/ >+ label [255] = '\0'; >+ len = snprintf (msg, sizeof (msg), "Changing filesystem label " >+ "of %s brick to %s", brickinfo->path, label); >+ if (len < 0) { >+ strcpy(msg, "<error>"); >+ } >+ /* Run the run btrfs tool to change the label >+ * of the file-system */ >+ runner_add_args (&runner, "btrfs", "filesystem", "label", >+ brickinfo->mount_dir, label, NULL); > } else { > gf_msg (this->name, GF_LOG_WARNING, EOPNOTSUPP, > GD_MSG_OP_UNSUPPORTED, "Changing file-system "
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1591634
:
1451792
|
1474612
| 1474613