summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorShireesh Anjal <anjalshireesh@gmail.com>2011-11-29 07:09:43 -0800
committerShireesh Anjal <anjalshireesh@gmail.com>2011-11-29 07:09:43 -0800
commitcb350f8dad28248015086b3eb67bb2946dbd0541 (patch)
treee0754d42451eabfc111fe60cf345dad41c615e06 /src
parent4a0ad5820eb5b03d777c12a233c24bd3b2264aef (diff)
parent3f0c6548d6295ec85c1aab88a6fe7f1221f494ad (diff)
Merge pull request #12 from balamurugana/master
Removed gluster-provision-block, added license text and updated glustermg.spec file
Diffstat (limited to 'src')
-rw-r--r--src/org.gluster.storage.management.gateway.scripts/src/backend/DiskUtils.py16
-rw-r--r--src/org.gluster.storage.management.gateway.scripts/src/backend/FsTabUtils.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/NetworkUtils.py16
-rw-r--r--src/org.gluster.storage.management.gateway.scripts/src/backend/VolumeUtils.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/add_user_cifs.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/clear_volume_directory.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/create_volume_cifs.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/delete_user_cifs.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/delete_volume_cifs.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/format_device.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/format_device_background.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/get_brick_status.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/get_format_device_status.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_cpu_details.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_memory_details.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_net_details.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/get_server_details.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/get_server_status.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/get_volume_brick_log.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/gluster-provision-block171
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/gluster-volume-settings.init.d16
-rw-r--r--src/org.gluster.storage.management.gateway.scripts/src/backend/gluster_cifs_volume_startup.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/modify_volume_cifs.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.init.d16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/rrd_cpu.pl17
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/rrd_mem.pl17
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/rrd_net.pl17
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/setup_cifs_config.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/start_volume_cifs.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/stop_volume_cifs.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/update-rrd.sh17
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/backend/update_volume_cifs.py16
-rw-r--r--src/org.gluster.storage.management.gateway.scripts/src/common/Globals.py16
-rw-r--r--src/org.gluster.storage.management.gateway.scripts/src/common/Utils.py16
-rw-r--r--src/org.gluster.storage.management.gateway.scripts/src/common/XmlHandler.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/gateway/add_user_cifs_all.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/gateway/create_volume_cifs_all.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/gateway/delete_user_cifs_all.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/gateway/delete_volume_cifs_all.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/gateway/get_volume_user_cifs.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/gateway/gmg-reset-password.sh17
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/gateway/grun.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/gateway/multicast-discover-servers.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/gateway/remove_server_volume_cifs_config.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/gateway/setup_cifs_config_all.py16
-rwxr-xr-xsrc/org.gluster.storage.management.gateway.scripts/src/gateway/update_volume_cifs_all.py16
48 files changed, 716 insertions, 212 deletions
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/DiskUtils.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/DiskUtils.py
index 4d1b701a..6666707b 100644
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/DiskUtils.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/DiskUtils.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/FsTabUtils.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/FsTabUtils.py
index 653d0dda..0bb328db 100644
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/FsTabUtils.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/FsTabUtils.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/NetworkUtils.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/NetworkUtils.py
index ff73af6f..711dfa22 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/NetworkUtils.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/NetworkUtils.py
@@ -1,5 +1,19 @@
# Copyright (c) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Storage Platform.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/VolumeUtils.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/VolumeUtils.py
index 5476e090..84bd3a7e 100644
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/VolumeUtils.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/VolumeUtils.py
@@ -1,5 +1,19 @@
# Copyright (c) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Storage Platform.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/add_user_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/add_user_cifs.py
index 2e1a1574..30cd399b 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/add_user_cifs.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/add_user_cifs.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/clear_volume_directory.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/clear_volume_directory.py
index 374a7e9c..4c2ec112 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/clear_volume_directory.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/clear_volume_directory.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/create_volume_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/create_volume_cifs.py
index 5a27ab87..f3d6795a 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/create_volume_cifs.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/create_volume_cifs.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_user_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_user_cifs.py
index aeda989f..88c6ac63 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_user_cifs.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_user_cifs.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_volume_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_volume_cifs.py
index 572d819c..a25fc667 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_volume_cifs.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_volume_cifs.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device.py
index 8630635c..8b9edf0c 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Storage Platform.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device_background.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device_background.py
index a804a59c..77314ef2 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device_background.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device_background.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Storage Platform.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_brick_status.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_brick_status.py
index b72321d7..0f5ca578 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_brick_status.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_brick_status.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Console.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py
index de4b4bb0..ce4daa4d 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Storage Platform.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_format_device_status.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_format_device_status.py
index 532f1585..0d965229 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_format_device_status.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_format_device_status.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Storage Platform.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_cpu_details.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_cpu_details.py
index da08fde1..219faa4f 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_cpu_details.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_cpu_details.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_memory_details.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_memory_details.py
index 07a9d7d0..04453628 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_memory_details.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_memory_details.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_net_details.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_net_details.py
index ee28ca13..258a758c 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_net_details.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_net_details.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_details.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_details.py
index 26b9059a..bdb6caa0 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_details.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_details.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Storage Platform.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_status.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_status.py
index 2814f10f..72627bd1 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_status.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_status.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Console.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_volume_brick_log.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_volume_brick_log.py
index 026c3c00..7a7904b9 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_volume_brick_log.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_volume_brick_log.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Storage Platform.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import re
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-provision-block b/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-provision-block
deleted file mode 100755
index 0385b82c..00000000
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-provision-block
+++ /dev/null
@@ -1,171 +0,0 @@
-#!/bin/bash
-
-ME=$(basename $0);
-
-set -o pipefail;
-
-function show_help()
-{
- usage_banner;
- cat <<EOF
-
-Usage: $ME [-h] [-t FSTYPE] DEVICE
-
-Prepare DEVICE to be used in volumes.
-DEVICE is the special file corresponding to the
-device (e.g /dev/sdXX).
-
-General:
- -t FSTYPE Prepare DEVICE using FSTYPE filesystem.
- Supported filesystems are ext3/ext4/xfs
- (Default is ext4/ext3)
-
-Miscellaneous:
- -h display this help and exit
-
-Example:
- $ME /dev/sdb
- $ME -t xfs /dev/sdb
-EOF
-}
-
-
-function usage_banner()
-{
- echo "Gluster Storage Virtual Appliance, Version 1.2."
-}
-
-function fail()
-{
- echo "$ME: FATAL: $@"
- exit 1;
-}
-
-
-function main()
-{
- # Parse command line arguments.
- while getopts :ht: OPT; do
- case "$OPT" in
- h)
- show_help
- exit 0
- ;;
- t)
- fstype=$OPTARG
- case $fstype in
- ext3 | ext4 | xfs)
- ;;
- *)
- echo "unknown fstype $fstype"
- show_help
- exit 1
- ;;
- esac
- ;;
- \?)
- # getopts issues an error message
- echo "Invalid option: -$OPTARG"
- show_help
- exit 1
- ;;
- :)
- echo "Option -$OPTARG requires an argument."
- show_help
- exit 1
- ;;
- esac
- done
-
- # Remove the switches we parsed above.
- shift `expr $OPTIND - 1`
-
- # We want only one non-option argument.
- if [ $# -ne 1 ]; then
- show_help
- exit 1
- fi
-
- if [ -z "$fstype" ]; then
- if [ -x /sbin/mkfs.ext4 ]; then
- fstype=ext4
- elif [ -x /sbin/mkfs.ext3 ]; then
- fstype=ext3
- else
- fail "neither ext4 nor ext3 support available (or mkfs tools not present)"
- fi
- fi
-
- set -e;
-
- devblk="$1";
- blk=$(echo $1 | cut -f3 -d/);
- mnt="/export/$blk";
-
- [ -e $mnt ] || mkdir -p $mnt
-
- [ -b $devblk ] || fail "$devblk is not a valid block device";
-
- [ -d $mnt ] || fail "$mnt is not a directory";
-
- grep -wq $blk /proc/partitions || fail "$blk is not detected in /proc/partitions";
-
- blkid -c /dev/null | grep -q "^$devblk:" && fail "$devblk is already formatted";
-
- grep -q " $mnt " /proc/mounts && fail "$mnt already has a mount";
- grep -q " $mnt/" /proc/mounts && fail "$mnt has a submount";
-
- grep -q " $mnt " /etc/fstab && fail "$mnt already has an entry in fstab";
-
- grep -wq "$devblk" /etc/fstab && fail "$devblk already has an entry in fstab";
-
- if [ ! -x /sbin/mkfs.$fstype ]; then
- fail "no $fstype support available"
- fi
-
- case $fstype in
- ext3 | ext4)
- /sbin/mkfs.$fstype -I 512 $devblk;
- ;;
- xfs)
- /sbin/mkfs.$fstype -i size=512 $devblk
- ;;
- esac
-
- uuid=$(blkid -c /dev/null -o value $devblk | head -1); #sed -n 's/ID_FS_UUID=//p');
-
- grep -wq "$uuid" /etc/fstab && fail "$uuid already has an entry in fstab";
-
- case $fstype in
- ext3 | ext4)
- echo "UUID=$uuid $mnt $fstype defaults,user_xattr 0 2" >> /etc/fstab || fail "Failed to update fstab";
- ;;
- *)
- echo "UUID=$uuid $mnt $fstype defaults 0 2" >> /etc/fstab || fail "Failed to update fstab";
- ;;
- esac
-
- mount -v $mnt || fail "mounting $devblk on $mnt failed";
-
-cat <<EOF
-
-================================================================================
-Completed mounting and setting up fstab for $devblk on $mnt
-
-You may now expand existing volumes or create new volumes with commands like:
-
- sh# gluster volume create VOLNAME $(hostname):$mnt/SUBDIR" ...
-
- or
-
- sh# gluster volume add-brick VOLNAME $(hostname):$mnt/SUBDIR ...
-
-Please refer documentation at http://www.gluster.com/community/documentation/
-for the exact syntax and reference.
-
-================================================================================
-EOF
-}
-
-
-main "$@";
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-volume-settings.init.d b/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-volume-settings.init.d
index 97bc01ee..2afdfb4c 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-volume-settings.init.d
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-volume-settings.init.d
@@ -1,4 +1,20 @@
#!/bin/bash
+# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
# chkconfig: - 90 10
### BEGIN INIT INFO
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster_cifs_volume_startup.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster_cifs_volume_startup.py
index 9ea7e021..2dfb1546 100644
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster_cifs_volume_startup.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster_cifs_volume_startup.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/modify_volume_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/modify_volume_cifs.py
index d56b1f59..9e1e581c 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/modify_volume_cifs.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/modify_volume_cifs.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.init.d b/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.init.d
index 7cfbe44a..8bc881f8 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.init.d
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.init.d
@@ -1,6 +1,20 @@
#!/bin/bash
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
# chkconfig: - 85 15
# description: multicast discovery service
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.py
index cb5de70c..64236bbe 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_cpu.pl b/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_cpu.pl
index 30a66342..06e183ce 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_cpu.pl
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_cpu.pl
@@ -1,4 +1,21 @@
#!/usr/bin/perl
+# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
+#
use RRDs;
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_mem.pl b/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_mem.pl
index 5c47cd81..b6fd8fba 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_mem.pl
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_mem.pl
@@ -1,4 +1,21 @@
#!/usr/bin/perl
+# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
+#
use RRDs;
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_net.pl b/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_net.pl
index 6ae128fd..46b659c5 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_net.pl
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_net.pl
@@ -1,4 +1,21 @@
#!/usr/bin/perl
+# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
+#
use RRDs;
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/setup_cifs_config.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/setup_cifs_config.py
index 5d5187f4..62e031fd 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/setup_cifs_config.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/setup_cifs_config.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/start_volume_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/start_volume_cifs.py
index e16c87c2..45d239e1 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/start_volume_cifs.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/start_volume_cifs.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/stop_volume_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/stop_volume_cifs.py
index d67d9061..6bf736b9 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/stop_volume_cifs.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/stop_volume_cifs.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/update-rrd.sh b/src/org.gluster.storage.management.gateway.scripts/src/backend/update-rrd.sh
index b081d6db..1379bc41 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/update-rrd.sh
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/update-rrd.sh
@@ -1,4 +1,21 @@
#!/bin/bash
+# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
+#
/usr/bin/rrd_cpu.pl &
/usr/bin/rrd_mem.pl &
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/update_volume_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/update_volume_cifs.py
index 64297a87..8544ac5c 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/backend/update_volume_cifs.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/update_volume_cifs.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/common/Globals.py b/src/org.gluster.storage.management.gateway.scripts/src/common/Globals.py
index 49a12b69..f03e9feb 100644
--- a/src/org.gluster.storage.management.gateway.scripts/src/common/Globals.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/common/Globals.py
@@ -1,5 +1,19 @@
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Storage Platform.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
MULTICAST_GROUP = '224.224.1.1'
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/common/Utils.py b/src/org.gluster.storage.management.gateway.scripts/src/common/Utils.py
index 3c90c533..bdc47f60 100644
--- a/src/org.gluster.storage.management.gateway.scripts/src/common/Utils.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/common/Utils.py
@@ -1,5 +1,19 @@
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/common/XmlHandler.py b/src/org.gluster.storage.management.gateway.scripts/src/common/XmlHandler.py
index d55ef07a..0d491a68 100644
--- a/src/org.gluster.storage.management.gateway.scripts/src/common/XmlHandler.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/common/XmlHandler.py
@@ -1,5 +1,19 @@
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import xml
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/add_user_cifs_all.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/add_user_cifs_all.py
index adfd031c..66236b59 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/add_user_cifs_all.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/add_user_cifs_all.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/create_volume_cifs_all.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/create_volume_cifs_all.py
index 8a43e7dc..2c40a56b 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/create_volume_cifs_all.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/create_volume_cifs_all.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_user_cifs_all.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_user_cifs_all.py
index a86e7264..92192d69 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_user_cifs_all.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_user_cifs_all.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_volume_cifs_all.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_volume_cifs_all.py
index 925a3548..0f4e7fb5 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_volume_cifs_all.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_volume_cifs_all.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/get_volume_user_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/get_volume_user_cifs.py
index c072a556..bbe736e1 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/get_volume_user_cifs.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/get_volume_user_cifs.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/gmg-reset-password.sh b/src/org.gluster.storage.management.gateway.scripts/src/gateway/gmg-reset-password.sh
index b39fe6b5..cfc54e9c 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/gmg-reset-password.sh
+++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/gmg-reset-password.sh
@@ -1,6 +1,23 @@
#-----------------------------------------------------------------------------------
# gmg-reset-password.sh - script to reset password of given user to default password
#-----------------------------------------------------------------------------------
+# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
+#
USAGE_ERR=1
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/grun.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/grun.py
index 6519d726..d7c23ee8 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/grun.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/grun.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/multicast-discover-servers.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/multicast-discover-servers.py
index ded207c0..9bdb037d 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/multicast-discover-servers.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/multicast-discover-servers.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/remove_server_volume_cifs_config.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/remove_server_volume_cifs_config.py
index 27fb9b92..93c47af6 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/remove_server_volume_cifs_config.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/remove_server_volume_cifs_config.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/setup_cifs_config_all.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/setup_cifs_config_all.py
index e7e0a4a0..99a4b2d3 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/setup_cifs_config_all.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/setup_cifs_config_all.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os
diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/update_volume_cifs_all.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/update_volume_cifs_all.py
index e5576c45..07c1e90e 100755
--- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/update_volume_cifs_all.py
+++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/update_volume_cifs_all.py
@@ -1,6 +1,20 @@
#!/usr/bin/python
# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of Gluster Management Gateway.
+# This file is part of Gluster Management Gateway (GlusterMG).
+#
+# GlusterMG 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 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterMG 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/>.
#
import os