Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
38220304
Commit
38220304
authored
Feb 15, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug #1: allow to use iscsi devices directly
parent
d7c076db
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
11 deletions
+58
-11
changelog.Debian
debian/changelog.Debian
+6
-0
defines.mk
defines.mk
+1
-1
StorageSelector.js
www/manager/form/StorageSelector.js
+10
-2
HDEdit.js
www/manager/qemu/HDEdit.js
+41
-8
No files found.
debian/changelog.Debian
View file @
38220304
pve-manager (2.0-26) unstable; urgency=low
* fix bug #1: allow to use iscsi devices directly
-- Proxmox Support Team <support@proxmox.com> Wed, 15 Feb 2012 10:54:50 +0100
pve-manager (2.0-25) unstable; urgency=low
* pveversion: display status of resource-agents-pve and fence-agents-pve
...
...
defines.mk
View file @
38220304
...
...
@@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=2.0
PACKAGE=pve-manager
PACKAGERELEASE=2
5
PACKAGERELEASE=2
6
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5
...
...
www/manager/form/StorageSelector.js
View file @
38220304
...
...
@@ -31,7 +31,7 @@ Ext.define('PVE.form.StorageSelector', {
me
.
nodename
=
undefined
;
var
store
=
Ext
.
create
(
'
Ext.data.Store
'
,
{
fields
:
[
'
storage
'
,
'
active
'
,
'
type
'
,
'
avail
'
,
'
total
'
]
,
model
:
'
pve-storage-status
'
,
sorters
:
{
property
:
'
storage
'
,
order
:
'
DESC
'
...
...
@@ -78,4 +78,12 @@ Ext.define('PVE.form.StorageSelector', {
me
.
setNodename
(
nodename
);
}
}
});
\ No newline at end of file
},
function
()
{
Ext
.
define
(
'
pve-storage-status
'
,
{
extend
:
'
Ext.data.Model
'
,
fields
:
[
'
storage
'
,
'
active
'
,
'
type
'
,
'
avail
'
,
'
total
'
],
idProperty
:
'
storage
'
});
});
www/manager/qemu/HDEdit.js
View file @
38220304
...
...
@@ -19,7 +19,11 @@ Ext.define('PVE.qemu.HDInputPanel', {
me
.
drive
.
file
=
me
.
vmconfig
[
values
.
unusedId
];
confid
=
values
.
controller
+
values
.
deviceid
;
}
else
if
(
me
.
create
)
{
me
.
drive
.
file
=
values
.
hdstorage
+
"
:
"
+
values
.
disksize
;
if
(
values
.
hdimage
)
{
me
.
drive
.
file
=
values
.
hdimage
;
}
else
{
me
.
drive
.
file
=
values
.
hdstorage
+
"
:
"
+
values
.
disksize
;
}
me
.
drive
.
format
=
values
.
diskformat
;
}
...
...
@@ -84,6 +88,7 @@ Ext.define('PVE.qemu.HDInputPanel', {
setNodename
:
function
(
nodename
)
{
var
me
=
this
;
me
.
hdstoragesel
.
setNodename
(
nodename
);
me
.
hdfilesel
.
setStorage
(
undefined
,
nodename
);
},
initComponent
:
function
()
{
...
...
@@ -114,18 +119,17 @@ Ext.define('PVE.qemu.HDInputPanel', {
});
me
.
column1
.
push
(
me
.
unusedDisks
);
}
else
if
(
me
.
create
)
{
me
.
hd
storagesel
=
Ext
.
create
(
'
PVE.form.Storag
eSelector
'
,
{
name
:
'
hd
stor
age
'
,
me
.
hd
filesel
=
Ext
.
create
(
'
PVE.form.Fil
eSelector
'
,
{
name
:
'
hd
im
age
'
,
nodename
:
me
.
nodename
,
fieldLabel
:
'
Storage
'
,
storageContent
:
'
images
'
,
autoSelect
:
me
.
insideWizard
,
fieldLabel
:
'
Disk image
'
,
disabled
:
true
,
hidden
:
true
,
allowBlank
:
false
});
me
.
column1
.
push
(
me
.
hdstoragesel
);
me
.
column1
.
push
({
xtype
:
'
numberfield
'
,
me
.
hdsizesel
=
Ext
.
createWidget
(
'
numberfield
'
,
{
name
:
'
disksize
'
,
minValue
:
1
,
maxValue
:
128
*
1024
,
...
...
@@ -133,6 +137,35 @@ Ext.define('PVE.qemu.HDInputPanel', {
fieldLabel
:
'
Disk size (GB)
'
,
allowBlank
:
false
});
me
.
hdstoragesel
=
Ext
.
create
(
'
PVE.form.StorageSelector
'
,
{
name
:
'
hdstorage
'
,
nodename
:
me
.
nodename
,
fieldLabel
:
'
Storage
'
,
storageContent
:
'
images
'
,
autoSelect
:
me
.
insideWizard
,
allowBlank
:
false
,
listeners
:
{
change
:
function
(
f
,
value
)
{
var
rec
=
f
.
store
.
getById
(
value
);
if
(
rec
.
data
.
type
===
'
iscsi
'
)
{
me
.
hdfilesel
.
setStorage
(
value
);
me
.
hdfilesel
.
setDisabled
(
false
);
me
.
hdfilesel
.
setVisible
(
true
);
me
.
hdsizesel
.
setDisabled
(
true
);
me
.
hdsizesel
.
setVisible
(
false
);
}
else
{
me
.
hdfilesel
.
setDisabled
(
true
);
me
.
hdfilesel
.
setVisible
(
false
);
me
.
hdsizesel
.
setDisabled
(
false
);
me
.
hdsizesel
.
setVisible
(
true
);
}
}
}
});
me
.
column1
.
push
(
me
.
hdstoragesel
);
me
.
column1
.
push
(
me
.
hdfilesel
);
me
.
column1
.
push
(
me
.
hdsizesel
);
}
else
{
me
.
column1
.
push
({
xtype
:
'
displayfield
'
,
...
...
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