mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Update filesystem.py
add ocfs2 support for module filesystem Update setup.yml delete trailing spaces add ocsfs2 defaut var Install ocfs2-tools for all linux Testing ocfs2 on for Ubuntu - restrict blkid to be be done
This commit is contained in:
@@ -227,6 +227,15 @@ class Btrfs(Filesystem):
|
||||
self.module.warn('Unable to identify mkfs.btrfs version (%r, %r)' % (stdout, stderr))
|
||||
|
||||
|
||||
class Ocfs2(Filesystem):
|
||||
MKFS = 'mkfs.ocfs2'
|
||||
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
>>>>>>> 02a7eb4... Update filesystem.py
|
||||
class VFAT(Filesystem):
|
||||
if get_platform() == 'FreeBSD':
|
||||
MKFS = "newfs_msdos"
|
||||
@@ -248,6 +257,12 @@ class VFAT(Filesystem):
|
||||
return [cmd, "-s", str(dev.size()), str(dev.path)]
|
||||
|
||||
|
||||
=======
|
||||
|
||||
>>>>>>> 5128847... Update filesystem.py
|
||||
=======
|
||||
|
||||
>>>>>>> e8781e5... delete trailing spaces
|
||||
class LVM(Filesystem):
|
||||
MKFS = 'pvcreate'
|
||||
MKFS_FORCE_FLAGS = '-f'
|
||||
@@ -269,6 +284,7 @@ FILESYSTEMS = {
|
||||
'xfs': XFS,
|
||||
'btrfs': Btrfs,
|
||||
'vfat': VFAT,
|
||||
'ocfs2': Ocfs2,
|
||||
'LVM2_member': LVM,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user