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 159417 Details for
Bug 248449
snap creation on inactive lv causes an invaild and "100% full" snapshot
[?]
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
snapshot_inact.patch (text/plain), 979 bytes, created by
Milan Broz
on 2007-07-17 12:09:08 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Milan Broz
Created:
2007-07-17 12:09:08 UTC
Size:
979 bytes
patch
obsolete
>Index: tools/lvcreate.c >=================================================================== >RCS file: /cvs/lvm2/LVM2/tools/lvcreate.c,v >retrieving revision 1.137 >diff -u -p -r1.137 lvcreate.c >--- tools/lvcreate.c 28 Jun 2007 17:33:44 -0000 1.137 >+++ tools/lvcreate.c 17 Jul 2007 12:06:04 -0000 >@@ -482,6 +482,7 @@ static int _lvcreate(struct cmd_context > struct alloc_handle *ah = NULL; > char lv_name_buf[128]; > const char *lv_name; >+ struct lvinfo info; > > status |= lp->permission | VISIBLE_LV; > >@@ -792,6 +793,15 @@ static int _lvcreate(struct cmd_context > if (!(lp->permission & LVM_WRITE)) > lv->status &= ~LVM_WRITE; > >+ /* COW area must be deactivated if origin is not active */ >+ if (!lv_info(cmd, org, &info, 0)) { >+ log_err("'%s' cannot read origin status.", org->name); >+ return 0; >+ } >+ >+ if (!info.exists) >+ deactivate_lv(cmd, lv); >+ > /* cow LV remains active and becomes snapshot LV */ > > if (!vg_add_snapshot(vg->fid, NULL, org, lv, NULL,
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 248449
: 159417