Skip to content
Permalink
Browse files

Merge pull request #479 from votdev/issue_475_swap

Create fs does not exclude swap partition
  • Loading branch information
votdev committed Dec 2, 2019
2 parents 866a02c + 4bd0e34 commit 131818e967af28ebf845c804c134b9d24ad162cb
@@ -26,7 +26,7 @@ namespace OMV\System\Filesystem\Backend;
///////////////////////////////////////////////////////////////////////////////
$backends = [ "Btrfs", "Ext", "Ext2", "Ext3", "Ext4", "Hfsplus",
"Iso9660", "Jfs", "Msdos", "None", "Ntfs", "Reiserfs", "Udf", "Ufs",
"Umsdos", "Exfat", "Vfat", "Xfs", "Fuseblk" ];
"Umsdos", "Exfat", "Vfat", "Xfs", "Fuseblk", "Swap" ];
$mngr = Manager::getInstance();
foreach ($backends as $backendk => $backendv) {
$className = sprintf("%s\%s", __NAMESPACE__, $backendv);
@@ -0,0 +1,32 @@
<?php
/**
* This file is part of OpenMediaVault.
*
* @license http://www.gnu.org/licenses/gpl.html GPL Version 3
* @author Volker Theile <volker.theile@openmediavault.org>
* @copyright Copyright (c) 2009-2019 Volker Theile
*
* OpenMediaVault 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
* any later version.
*
* OpenMediaVault 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 OpenMediaVault. If not, see <http://www.gnu.org/licenses/>.
*/
namespace OMV\System\Filesystem\Backend;
/**
* Swap is not a real filesystem, but it's the easiest way to
* integrate it.
*/
class Swap extends BackendAbstract {
public function __construct() {
$this->type = "swap";
}
}

0 comments on commit 131818e

Please sign in to comment.
You can’t perform that action at this time.