From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/ricci/modules/storage FSController.cpp
Date: 26 Sep 2006 03:20:47 -0000 [thread overview]
Message-ID: <20060926032047.2775.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-09-26 03:20:47
Modified files:
ricci/modules/storage: FSController.cpp
Log message:
storage module: add full GFS1/2 support, and detection of multiple other filesystems (so they don't get overwriten)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/FSController.cpp.diff?cvsroot=cluster&r1=1.6&r2=1.7
--- conga/ricci/modules/storage/FSController.cpp 2006/09/26 03:02:57 1.6
+++ conga/ricci/modules/storage/FSController.cpp 2006/09/26 03:20:47 1.7
@@ -24,6 +24,9 @@
#include "FSController.h"
#include "ExtendedFS.h"
#include "SwapFS.h"
+#include "GFS1.h"
+#include "GFS2.h"
+#include "UnsupportedFS.h"
#include "utils.h"
@@ -37,9 +40,15 @@
return counting_auto_ptr<Content>(new ExtendedFS(path));
} catch ( ... ) {}
try {
+ return counting_auto_ptr<Content>(new GFS1(path));
+ } catch ( ... ) {}
+ try {
+ return counting_auto_ptr<Content>(new GFS2(path));
+ } catch ( ... ) {}
+ try {
return counting_auto_ptr<Content>(new SwapFS(path));
} catch ( ... ) {}
- throw String("not FS");
+ return counting_auto_ptr<Content>(new UnsupportedFS(path));
}
std::list<counting_auto_ptr<ContentTemplate> >
@@ -51,6 +60,12 @@
cnts.push_back(counting_auto_ptr<ContentTemplate>(new ExtendedFSTemplate()));
} catch ( ... ) {}
try {
+ cnts.push_back(counting_auto_ptr<ContentTemplate>(new GFS1Template()));
+ } catch ( ... ) {}
+ try {
+ cnts.push_back(counting_auto_ptr<ContentTemplate>(new GFS2Template()));
+ } catch ( ... ) {}
+ try {
cnts.push_back(counting_auto_ptr<ContentTemplate>(new SwapFSTemplate()));
} catch ( ... ) {}
@@ -67,6 +82,10 @@
String fs_type = cont_templ->attrs["fs_type"];
if (fs_type == ExtendedFS::PRETTY_NAME)
create_extended_fs(bd->path(), cont_templ);
+ else if (fs_type == GFS1::PRETTY_NAME)
+ create_GFS1(bd->path(), cont_templ);
+ else if (fs_type == GFS2::PRETTY_NAME)
+ create_GFS2(bd->path(), cont_templ);
else if (fs_type == SwapFS::PRETTY_NAME)
create_swap_fs(bd->path(), cont_templ);
else
next reply other threads:[~2006-09-26 3:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-26 3:20 kupcevic [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-06-27 15:46 [Cluster-devel] conga/ricci/modules/storage FSController.cpp rmccabe
2007-08-08 21:58 rmccabe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060926032047.2775.qmail@sourceware.org \
--to=kupcevic@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.