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 1488973 Details for
Bug 1573016
gi.overrides.BlockDev.SwapError: Unknown swap space format, cannot activate.
[?]
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.
script to activate swap device with libblockdev
bd_swapon.py (text/plain), 341 bytes, created by
Vratislav Podzimek
on 2018-10-01 09:24:29 UTC
(
hide
)
Description:
script to activate swap device with libblockdev
Filename:
MIME Type:
Creator:
Vratislav Podzimek
Created:
2018-10-01 09:24:29 UTC
Size:
341 bytes
patch
obsolete
>import sys > >import gi >gi.require_version("BlockDev", "2.0") >from gi.repository import BlockDev > >if len(sys.argv) < 2: > print("No device to activate specified") > sys.exit(1) > >device = sys.argv[1] > >BlockDev.init(BlockDev.plugin_specs_from_names(["swap"])) >BlockDev.swap.swapon(device) >print("Swap on %s activated successfully" % device)
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 Raw
Actions:
View
Attachments on
bug 1573016
:
1428545
|
1428546
|
1428547
|
1428548
|
1428549
|
1428550
|
1428551
|
1428552
|
1428553
|
1428554
|
1428555
| 1488973