mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
1 parent
0b587ba279
commit
d22d34da4e
1 file changed
+3
-4
@@ -34,16 +34,15 @@ module Storage
|
||||
:umount => "#{PRE}umount",
|
||||
:lsblk => 'lsblk',
|
||||
:mkdir => 'mkdir -p',
|
||||
:su_mkdir => "#{PRE}mkdir -p",
|
||||
:cat => 'cat',
|
||||
:file => 'file -L -s',
|
||||
:blkid => "#{PRE}blkid",
|
||||
:e2fsck => "#{PRE}e2fsck",
|
||||
:resize2fs => "#{PRE}resize2fs",
|
||||
:xfs_growfs => "#{PRE}xfs_growfs",
|
||||
:bind => "#{PRE} bindfs" # TODO, allow customize offset
|
||||
}
|
||||
|
||||
private_constant :COMMANDS
|
||||
private_constant :PRE
|
||||
|
||||
def self.setup_disk(device, mountpoint, bindpoint, options)
|
||||
begin
|
||||
# Get device filesystem (e.g ext4, xfs, ...)
|
||||
|
||||
Reference in new issue
Block a user