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 295689 Details for
Bug 434595
make dm-log usable by modules other than dm-mirror
[?]
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]
Make dm-log.c a self-contained module
linux-2.6-dm-make-dirty-log-modular.patch (text/plain), 3.37 KB, created by
Jeff Moyer
on 2008-02-22 23:28:05 UTC
(
hide
)
Description:
Make dm-log.c a self-contained module
Filename:
MIME Type:
Creator:
Jeff Moyer
Created:
2008-02-22 23:28:05 UTC
Size:
3.37 KB
patch
obsolete
>--- linux-2.6.18.x86_64/drivers/md/dm-log.h.orig 2008-02-14 17:19:54.000000000 -0500 >+++ linux-2.6.18.x86_64/drivers/md/dm-log.h 2008-02-14 17:19:54.000000000 -0500 >@@ -151,10 +151,4 @@ struct dirty_log *dm_create_dirty_log(co > unsigned int argc, char **argv); > void dm_destroy_dirty_log(struct dirty_log *log); > >-/* >- * init/exit functions. >- */ >-int dm_dirty_log_init(void); >-void dm_dirty_log_exit(void); >- > #endif >--- linux-2.6.18.x86_64/drivers/md/dm-raid1.c.orig 2008-02-14 17:20:38.000000000 -0500 >+++ linux-2.6.18.x86_64/drivers/md/dm-raid1.c 2008-02-14 17:20:52.000000000 -0500 >@@ -1777,16 +1777,10 @@ static int __init dm_mirror_init(void) > if (!bio_map_info_pool) > return -ENOMEM; > >- r = dm_dirty_log_init(); >- if (r) >- return r; >- > r = dm_register_target(&mirror_target); >- if (r < 0) { >+ if (r < 0) > DMERR("%s: Failed to register mirror target", > mirror_target.name); >- dm_dirty_log_exit(); >- } > > return r; > } >@@ -1798,8 +1792,6 @@ static void __exit dm_mirror_exit(void) > r = dm_unregister_target(&mirror_target); > if (r < 0) > DMERR("%s: unregister failed %d", mirror_target.name, r); >- >- dm_dirty_log_exit(); > } > > /* Module hooks */ >--- linux-2.6.18.x86_64/drivers/md/dm-log.c.orig 2008-02-14 17:20:20.000000000 -0500 >+++ linux-2.6.18.x86_64/drivers/md/dm-log.c 2008-02-14 17:20:24.000000000 -0500 >@@ -805,7 +805,7 @@ static struct dirty_log_type _disk_type > .get_failure_response = core_get_failure_response, > }; > >-int __init dm_dirty_log_init(void) >+static int __init dm_dirty_log_init(void) > { > int r; > >@@ -822,7 +822,7 @@ int __init dm_dirty_log_init(void) > return r; > } > >-void dm_dirty_log_exit(void) >+static void __exit dm_dirty_log_exit(void) > { > dm_unregister_dirty_log_type(&_disk_type); > dm_unregister_dirty_log_type(&_core_type); >@@ -832,3 +832,10 @@ EXPORT_SYMBOL(dm_register_dirty_log_type > EXPORT_SYMBOL(dm_unregister_dirty_log_type); > EXPORT_SYMBOL(dm_create_dirty_log); > EXPORT_SYMBOL(dm_destroy_dirty_log); >+ >+module_init(dm_dirty_log_init); >+module_exit(dm_dirty_log_exit); >+ >+MODULE_DESCRIPTION(DM_NAME " dirty log library"); >+MODULE_AUTHOR("Joe Thornber / Heinz Mauelshagen"); >+MODULE_LICENSE("GPL"); >--- linux-2.6.18.x86_64/drivers/md/Makefile.orig 2008-02-14 17:18:03.000000000 -0500 >+++ linux-2.6.18.x86_64/drivers/md/Makefile 2008-02-14 17:18:03.000000000 -0500 >@@ -6,7 +6,7 @@ dm-mod-objs := dm.o dm-table.o dm-target > dm-ioctl.o dm-io.o kcopyd.o > dm-multipath-objs := dm-hw-handler.o dm-path-selector.o dm-mpath.o > dm-snapshot-objs := dm-snap.o dm-exception-store.o >-dm-mirror-objs := dm-log.o dm-raid1.o >+dm-mirror-objs := dm-raid1.o > dm-rdac-objs := dm-mpath-rdac.o > dm-hp-sw-objs := dm-mpath-hp-sw.o > md-mod-objs := md.o bitmap.o >--- linux-2.6.18.x86_64/drivers/md/Kconfig.orig 2008-02-14 17:19:29.000000000 -0500 >+++ linux-2.6.18.x86_64/drivers/md/Kconfig 2008-02-14 17:19:29.000000000 -0500 >@@ -223,9 +223,16 @@ config DM_SNAPSHOT > ---help--- > Allow volume managers to take writable snapshots of a device. > >+config DM_LOG >+ tristate "Dirty log library" >+ depends on BLK_DEV_DM >+ ---help--- >+ Dirty log library routines. >+ > config DM_MIRROR > tristate "Mirror target (EXPERIMENTAL)" > depends on BLK_DEV_DM && EXPERIMENTAL >+ select DM_LOG > ---help--- > Allow volume managers to mirror logical volumes, also > needed for live data migration tools such as 'pvmove'.
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 434595
:
295689
|
295989