Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acf-lvm2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACF
acf-lvm2
Commits
12e12d11
Commit
12e12d11
authored
Jan 01, 2013
by
Ted Trask
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace io.popen with modelfunctions.run_executable
parent
45540de6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
lvm2-model.lua
lvm2-model.lua
+2
-10
No files found.
lvm2-model.lua
View file @
12e12d11
...
...
@@ -9,8 +9,6 @@ format = require("acf.format")
local
processname
=
"lvm"
local
packagename
=
"lvm2"
local
path
=
"PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin "
-- ################################################################################
-- LOCAL FUNCTIONS
...
...
@@ -32,16 +30,10 @@ end
function
getstatusdetails
()
local
status
=
{}
status
.
pvdisplay
=
cfe
({
type
=
"longtext"
,
label
=
"Physical Volumes"
})
local
cmd
=
path
..
"pvdisplay"
local
f
=
io.popen
(
cmd
)
status
.
pvdisplay
.
value
=
f
:
read
(
"*a"
)
or
""
f
:
close
()
status
.
pvdisplay
.
value
,
status
.
pvdisplay
.
errtxt
=
modelfunctions
.
run_executable
({
"pvdisplay"
})
status
.
lvdisplay
=
cfe
({
type
=
"longtext"
,
label
=
"Logical Volumes"
})
cmd
=
path
..
"lvdisplay"
f
=
io.popen
(
cmd
)
status
.
lvdisplay
.
value
=
f
:
read
(
"*a"
)
or
""
f
:
close
()
status
.
lvdisplay
.
value
,
status
.
lvdisplay
.
errtxt
=
modelfunctions
.
run_executable
({
"lvdisplay"
})
return
cfe
({
type
=
"group"
,
value
=
status
,
label
=
"LVM Status Details"
})
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment