conga luci/site/luci/Extensions/StorageReport. ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-10-05 16:11:38
Modified files:
luci/site/luci/Extensions: StorageReport.py
conga_storage_constants.py
ricci/modules/storage: ExtendedFS.cpp GFS1.cpp GFS2.cpp
SwapFS.cpp UnsupportedFS.cpp
Log message:
Move FS pretty names from ricci to luci
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/StorageReport.py.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_storage_constants.py.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/ExtendedFS.cpp.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/GFS1.cpp.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/GFS2.cpp.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/SwapFS.cpp.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/UnsupportedFS.cpp.diff?cvsroot=cluster&r1=1.1&r2=1.2
luci/site/luci/Extensions/StorageReport.py +1 -1
@@ -1669,7 +1669,7 @@ if id == CONTENT_FS_TYPE: fs_type = c_xml.getAttribute('fs_type') id += '_' + fs_type - name = fs_type + name = get_pretty_fs_name(fs_type) elif id == CONTENT_NONE_TYPE: name = 'Empty' elif id == CONTENT_MS_TYPE:
luci/site/luci/Extensions/conga_storage_constants.py +35 -0
@@ -147,3 +147,38 @@ if name in PRETTY_PROP_NAMES: return PRETTY_PROP_NAMES[name] return name + + + +def get_pretty_fs_name(name): + PRETTY_FS_NAMES = {'ext' : "Linux Extended FS", + 'swap' : "Swap", + 'gfs1' : "GFS1 - Global FS v.1", + 'gfs2' : "GFS2 - Global FS v.2", + 'minix' : "Minix FS", + 'ufs' : "Unix Fast FS", + 'xfs' : "SGI XFS", + 'isofs' : "ISO 9660 CD-ROM FS", + 'cramfs' : "Cram FS", + 'raiserfs' : "Reiser FS", + 'jffs' : "Journalled Flash FS v.1", + 'jffs2' : "Journalled Flash FS v.2", + 'squashfs' : "Squash FS", + 'vfat' : "MS vfat FS", + 'msdos' : "MS-DOS FS", + 'affs' : "Amiga FS", + 'befs' : "BeOS FS", + 'bfs' : "SCO UnixWare BFS", + 'jfs' : "Journaled Filesystem (JFS)", + 'efs' : "efs", + 'freevxfs' : "Veritas Filesystem (VxFS)", + 'hfsplus' : "Macintosh extended FS", + 'hfs' : "Macintosh FS", + 'ncpfs' : "ncpfs", + 'ocfs2' : "Oracle Clustered FS v.2", + 'relayfs' : "Relay FS", + 'udf' : "Universal Disk Format"} + + if name in PRETTY_FS_NAMES: + return PRETTY_FS_NAMES[name] + return name
ricci/modules/storage/ExtendedFS.cpp +1 -1
@@ -33,7 +33,7 @@ const static String MKE2FS_path("/sbin/mke2fs"); -const String ExtendedFS::PRETTY_NAME("Linux Extended FS"); +const String ExtendedFS::PRETTY_NAME("ext");
ricci/modules/storage/GFS1.cpp +1 -1
@@ -39,7 +39,7 @@ #include "gfs_ondisk.h" -const String GFS1::PRETTY_NAME("GFS1 - Global FS v.1"); +const String GFS1::PRETTY_NAME("gfs1"); const static String gfs1_module("gfs"); const static String MKFS_GFS1_path("/sbin/mkfs.gfs");
ricci/modules/storage/GFS2.cpp +1 -1
@@ -45,7 +45,7 @@ #include "gfs2_ondisk.h" -const String GFS2::PRETTY_NAME("GFS2 - Global FS v.2"); +const String GFS2::PRETTY_NAME("gfs2"); const static String gfs2_module("gfs2"); const static String MKFS_GFS2_path("/sbin/mkfs.gfs2");
ricci/modules/storage/SwapFS.cpp +1 -1
@@ -31,7 +31,7 @@ using namespace std; -const String SwapFS::PRETTY_NAME("Swap"); +const String SwapFS::PRETTY_NAME("swap"); SwapFS::SwapFS(const String& path) :
ricci/modules/storage/UnsupportedFS.cpp +21 -21
97 lines not on this page · raw message