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 209011 Details for
Bug 309901
[kernel dm core] struct dm_dev not available to modules, so no access to underlying bdev
[?]
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 2
dm_dev2.patch (text/plain), 1.02 KB, created by
Derek Atkins
on 2007-09-27 20:54:12 UTC
(
hide
)
Description:
Proposed Patch 2
Filename:
MIME Type:
Creator:
Derek Atkins
Created:
2007-09-27 20:54:12 UTC
Size:
1.02 KB
patch
obsolete
>--- linux-2.6.22.i686/include/linux/device-mapper.h~ 2007-07-08 19:32:17.000000000 -0400 >+++ linux-2.6.22.i686/include/linux/device-mapper.h 2007-09-27 16:49:06.000000000 -0400 >@@ -88,6 +88,9 @@ > sector_t len, int mode, struct dm_dev **result); > void dm_put_device(struct dm_target *ti, struct dm_dev *d); > >+/* get the underlying block device from a dm device */ >+struct block_device* dm_get_blockdevice(struct dm_dev* d); >+ > /* > * Information about a target type > */ >--- linux-2.6.22.i686/drivers/md/dm-table.c~ 2007-07-08 19:32:17.000000000 -0400 >+++ linux-2.6.22.i686/drivers/md/dm-table.c 2007-09-27 16:51:22.000000000 -0400 >@@ -1033,6 +1033,13 @@ > return t->md; > } > >+struct block_device* dm_get_blockdevice(struct dm_dev* d) >+{ >+ if (!d) >+ return NULL; >+ return d->bdev; >+} >+ > EXPORT_SYMBOL(dm_vcalloc); > EXPORT_SYMBOL(dm_get_device); > EXPORT_SYMBOL(dm_put_device); >@@ -1044,3 +1051,4 @@ > EXPORT_SYMBOL(dm_table_get); > EXPORT_SYMBOL(dm_table_unplug_all); > EXPORT_SYMBOL(dm_table_flush_all); >+EXPORT_SYMBOL(dm_get_blockdevice);
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 309901
:
209001
| 209011