Bugzilla – Attachment 370040 Details for
Bug 598193
udev deletes device nodes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Additional change event to device mapper device
dm-udev-trigger.diff (text/plain), 746 bytes, created by
Xin Wei Hu
on 2010-06-18 11:04:06 UTC
(
hide
)
Description:
Additional change event to device mapper device
Filename:
MIME Type:
Creator:
Xin Wei Hu
Created:
2010-06-18 11:04:06 UTC
Size:
746 bytes
patch
obsolete
>Index: libstorage-2.19.16/storage/Volume.cc >=================================================================== >--- libstorage-2.19.16.orig/storage/Volume.cc 2010-05-06 18:51:03.000000000 +0800 >+++ libstorage-2.19.16/storage/Volume.cc 2010-06-18 18:53:31.000000000 +0800 >@@ -997,6 +997,16 @@ > else > y2mil( "error opening " << path << " err:" << > hex << file.rdstate() ); >+ if ( getFilesysSysfsPath().find('dm-') != string::npos ) >+ { >+ ofstream file( path.c_str() ); >+ classic( file ); >+ y2mil( "device mapper needs additional \"change\" event" ); >+ y2mil( "writing \"change\" to " << path ); >+ file << "change" << endl; >+ file.close(); >+ Storage::waitForDevice(); >+ } > } > else > y2mil( "no access to " << path );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 598193
:
355651
|
355652
|
355653
|
363965
| 370040 |
374064