Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-camogm
Commits
eb27ad00
Commit
eb27ad00
authored
Sep 28, 2016
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filter mountpoints in camogmgui
parent
47834f84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
25 deletions
+34
-25
camogm_interface.php
src/camogmgui/camogm_interface.php
+34
-25
No files found.
src/camogmgui/camogm_interface.php
View file @
eb27ad00
...
@@ -349,6 +349,8 @@ else
...
@@ -349,6 +349,8 @@ else
case
"listdevices"
:
case
"listdevices"
:
exec
(
"cat /proc/partitions"
,
$arr1
);
exec
(
"cat /proc/partitions"
,
$arr1
);
exec
(
"cat /proc/mounts"
,
$arr2
);
exec
(
"cat /proc/mounts"
,
$arr2
);
$ret
=
get_mnt_dev
();
$mnt_dev
=
$ret
[
"devices"
];
$j
=
0
;
$j
=
0
;
// first two lines are header and empty line separator, skip them
// first two lines are header and empty line separator, skip them
$i
=
2
;
$i
=
2
;
...
@@ -372,6 +374,12 @@ else
...
@@ -372,6 +374,12 @@ else
}
}
$j
=
0
;
$j
=
0
;
foreach
(
$partitions
as
$partition
)
{
foreach
(
$partitions
as
$partition
)
{
$include
=
false
;
foreach
(
$mnt_dev
as
$dev
)
{
if
(
strpos
(
$dev
,
$partition
))
$include
=
true
;
}
if
(
$include
)
{
echo
"<item>"
;
echo
"<item>"
;
echo
"<partition>/dev/"
.
$partition
.
"</partition>"
;
echo
"<partition>/dev/"
.
$partition
.
"</partition>"
;
echo
"<size>"
.
round
(
$size
[
$j
]
/
1024
/
1024
,
2
)
.
" GB</size>"
;
echo
"<size>"
.
round
(
$size
[
$j
]
/
1024
/
1024
,
2
)
.
" GB</size>"
;
...
@@ -400,6 +408,7 @@ else
...
@@ -400,6 +408,7 @@ else
}
}
echo
"</item>"
;
echo
"</item>"
;
}
}
}
break
;
break
;
case
"list_raw_devices"
:
case
"list_raw_devices"
:
$devices
=
get_raw_dev
();
$devices
=
get_raw_dev
();
...
...
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