-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #711 from schakrava/697_owncloud
697 owncloud
- Loading branch information
Showing
30 changed files
with
1,434 additions
and
416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ extends = base-buildout.cfg | |
|
||
parts = | ||
stop-servers | ||
rpm-deps | ||
django | ||
scripts | ||
postgres-setup | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
""" | ||
Copyright (c) 2012-2015 RockStor, Inc. <http://rockstor.com> | ||
This file is part of RockStor. | ||
RockStor is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published | ||
by the Free Software Foundation; either version 2 of the License, | ||
or (at your option) any later version. | ||
RockStor is distributed in the hope that it will be useful, but | ||
WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
""" | ||
|
||
BTRFS = '/usr/sbin/btrfs' | ||
|
||
|
||
import re | ||
from django.conf import settings | ||
from storageadmin.models import Pool | ||
from system.osi import run_command | ||
|
||
|
||
def main(): | ||
for p in Pool.objects.all(): | ||
mnt_pt = '%s%s' % (settings.MNT_PT, p.name) | ||
o, e, rc = run_command([BTRFS, 'subvol', 'list', mnt_pt]) | ||
subvol_ids = [] | ||
for l in o: | ||
if (re.match('ID ', l) is not None): | ||
subvol_ids.append(l.split()[1]) | ||
|
||
o, e, rc = run_command([BTRFS, 'qgroup', 'show', mnt_pt]) | ||
qgroup_ids = [] | ||
for l in o: | ||
if (re.match('0/', l) is not None): | ||
q = l.split()[0].split('/')[1] | ||
if (q == '5'): | ||
continue | ||
qgroup_ids.append(l.split()[0].split('/')[1]) | ||
|
||
for q in qgroup_ids: | ||
if (q not in subvol_ids): | ||
print ('qgroup %s not in use. deleting' % q) | ||
run_command([BTRFS, 'qgroup', 'destroy', '0/%s' % q, mnt_pt]) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
624 changes: 624 additions & 0 deletions
624
...migrations/0029_auto__add_dcontainerlink__add_unique_dcontainerlink_destination_name__.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 8 additions & 7 deletions
15
src/rockstor/storageadmin/static/storageadmin/js/templates/rockons/custom_choice.jst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<div id="breadcrumb"> | ||
<div>Shares</div> | ||
<div>Ports</div> | ||
<div>Config</div> | ||
<div class="progress"> | ||
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 75%;"> | ||
<span class="sr-only">60% Complete</span> | ||
</div> | ||
</div> | ||
<br> | ||
<h3>Additional configuration needed for this Rock-on.</h3> | ||
<br> | ||
<div class="alert alert-warning"> | ||
<p>Additional configuration is needed for this Rock-on. Make sure to read tooltips for specific information before making your selection.</p> | ||
</div> | ||
|
||
<div id="ph-cc-form"></div> |
10 changes: 5 additions & 5 deletions
10
src/rockstor/storageadmin/static/storageadmin/js/templates/rockons/install_choice.jst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<div id="breadcrumb"> | ||
<div>Shares</div> | ||
<div class="progress"> | ||
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 25%;"></div> | ||
</div> | ||
<div class="alert alert-warning"> | ||
<p>Shares provide storage to the Rock-on. Make sure to read tooltips for specific information before making a selection. We strongly recommend creating dedicated Share assignments. If a Share is assigned to more than one Rock-On, it could cause strange behavior.</p> | ||
</div> | ||
<br> | ||
<h4>Assign Share(s) to the Rock-on. For proper functionality, make sure to assign new/empty and dedicated Shares.</h4> | ||
<br> | ||
<div id="ph-vols-table"></div> |
2 changes: 1 addition & 1 deletion
2
src/rockstor/storageadmin/static/storageadmin/js/templates/rockons/install_complete.jst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div class="alert alert-success"> | ||
<h3>Installation is in progress.<br>It can take a while depending on the type of Rock-on, network speed and other factors.<br> You can monitor the Rock-ons page which refreshes periodically during the installation.</h3> | ||
<p>Installation is in progress.<br>It can take a while depending on the type of Rock-on, network speed and other factors.<br> You can monitor the Rock-ons page which refreshes periodically during the installation.</p> | ||
</div> |
16 changes: 8 additions & 8 deletions
16
src/rockstor/storageadmin/static/storageadmin/js/templates/rockons/install_summary.jst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<div id="breadcrumb"> | ||
<div>Shares</div> | ||
<div>Ports</div> | ||
<div>Config</div> | ||
<div>Summary</div> | ||
<div class="progress"> | ||
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 100%;"> | ||
<span class="sr-only">60% Complete</span> | ||
</div> | ||
</div> | ||
<br> | ||
<h4>Click submit to start the installation.</h4> | ||
<br> | ||
<div class="alert alert-warning"> | ||
<p>Please verify your input and click submit to start the installation.</p> | ||
</div> | ||
|
||
<div id="ph-summary-table"></div> |
1 change: 1 addition & 0 deletions
1
src/rockstor/storageadmin/static/storageadmin/js/templates/rockons/more_info.jst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%= rockon.get('more_info') %> |
12 changes: 6 additions & 6 deletions
12
src/rockstor/storageadmin/static/storageadmin/js/templates/rockons/port_choice.jst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<div id="breadcrumb"> | ||
<div>Shares</div> | ||
<div>Ports</div> | ||
<div class="progress"> | ||
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 50%;"> | ||
</div> | ||
</div> | ||
<div class="alert alert-warning"> | ||
<p>Ports provide network access to the Rock-on. Preferred default values are provided for convenience. Read tooltips for more information.</p> | ||
</div> | ||
<br> | ||
<h4>Assign appropriate ports to the Rock-on. If unsure, go with default values provided.</h4> | ||
<br> | ||
<div id="ph-ports-form"></div> |
22 changes: 8 additions & 14 deletions
22
src/rockstor/storageadmin/static/storageadmin/js/templates/rockons/ports_form.jst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
<div class="row"> | ||
<div class="col-md-8"> | ||
<div class="col-md-10"> | ||
<label class="control-label"></label> | ||
|
||
<div class="form-box"> | ||
<form id="port-select-form" name="aform" > | ||
|
||
<form id="port-select-form" name="aform" class="form-horizontal"> | ||
<div class="messages"></div> | ||
|
||
<% ports.each(function(port, index) { %> | ||
<div class="form-group"> | ||
<% ports.each(function(port, index) { %> | ||
<label class="control-label" for="ports">Port(<%= port.get('containerp')%>)<span class="required"> *</span></label> | ||
<div class=""> | ||
<input type="text" id="<%= port.id %>" name="<%= port.id %>" value="<%= port.get('containerp')%>" title="host port to map to the Rock-on port"> | ||
<label class="control-label col-sm-3" for="ports"><%= port.get('label') %><span class="required">*</span></label> | ||
<div class="col-sm-5"> | ||
<input class="form-control" type="text" id="<%= port.id %>" name="<%= port.id %>" value="<%= port.get('hostp')%>"> | ||
</div> | ||
<% }); %> | ||
<i class="fa fa-info-circle fa-lg" title="<%= port.get('description') %>"></i> | ||
</div> | ||
|
||
<% }); %> | ||
</form> | ||
</div> | ||
|
||
</div> | ||
|
||
</div> |
Oops, something went wrong.