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 261031 Details for
Bug 379911
dmraid needs to generate UUIDs for lib device-mapper
[?]
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]
Add subsystem prefix "DMRAID-" to device-mapper UUID generated.
dmraid-1.0.0.rc14-UUID-Subsystemprefix.patch (text/plain), 1.28 KB, created by
Heinz Mauelshagen
on 2007-11-16 11:45:06 UTC
(
hide
)
Description:
Add subsystem prefix "DMRAID-" to device-mapper UUID generated.
Filename:
MIME Type:
Creator:
Heinz Mauelshagen
Created:
2007-11-16 11:45:06 UTC
Size:
1.28 KB
patch
obsolete
>--- current/lib/activate/devmapper.c.orig 2007-11-13 13:51:11.000000000 +0100 >+++ current/lib/activate/devmapper.c 2007-11-16 12:42:14.000000000 +0100 >@@ -151,13 +151,16 @@ > > /* Build a UUID for a dmraid device > * Return 1 for sucess; 0 for failure*/ >-static int dmraid_uuid(char *uuid, struct lib_context *lc, >- struct raid_set *rs, uint uuid_len) { >+static int dmraid_uuid(struct lib_context *lc, struct raid_set *rs, >+ char *uuid, uint uuid_len) { >+ int r; >+ > /* Clear garbage data from uuid string */ > memset(uuid, 0, uuid_len); >- >- /* Insert volume name into string */ >- return !!memcpy(uuid, rs->name, strlen(rs->name)); >+ >+ /* Create UUID string from subsystem prefix and RAID set name. */ >+ r = snprintf(uuid, uuid_len, "DMRAID-%s", rs->name) < uuid_len; >+ return r < 0 ? 0 : (r < uuid_len); > } > > /* Create a task, set its name and run it. */ >@@ -178,12 +181,11 @@ > if (ret && table) > ret = parse_table(lc, dmt, table); > >- if (ret) { >- if (DM_DEVICE_CREATE == type && >- dmraid_uuid(uuid, lc, rs, DM_UUID_LEN)) >- dm_task_set_uuid(dmt, uuid); >- ret = dm_task_run(dmt); >- } >+ if (ret && >+ DM_DEVICE_CREATE == type) >+ ret = dmraid_uuid(lc, rs, uuid, DM_UUID_LEN) && >+ dm_task_set_uuid(dmt, uuid) && >+ dm_task_run(dmt); > > _exit_dm(dmt); > return ret;
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 379911
:
256841
| 261031