Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
45cc6b8
)
add snap support in lconf
author
wangdi
<wangdi>
Mon, 5 Jul 2004 10:36:30 +0000
(10:36 +0000)
committer
wangdi
<wangdi>
Mon, 5 Jul 2004 10:36:30 +0000
(10:36 +0000)
lustre/utils/lconf
patch
|
blob
|
history
diff --git
a/lustre/utils/lconf
b/lustre/utils/lconf
index
ac5dc22
..
858450b
100755
(executable)
--- a/
lustre/utils/lconf
+++ b/
lustre/utils/lconf
@@
-1602,6
+1602,12
@@
class MDSDEV(Module):
if self.fstype == 'smfs':
self.add_lustre_module('lvfs', 'fsfilt_%s' % (self.backfstype))
if self.fstype == 'smfs':
self.add_lustre_module('lvfs', 'fsfilt_%s' % (self.backfstype))
+ for options in string.split(self.mountfsoptions, ','):
+ if options == 'snap':
+ if not self.fstype == 'smfs':
+ panic("mountoptions with snap, but fstype is not smfs\n")
+ self.add_lustre_module('lvfs', 'fsfilt_snap_%s' % (self.fstype))
+ self.add_lustre_module('lvfs', 'fsfilt_snap_%s' % (self.backfstype))
def load_module(self):
if self.active:
Module.load_module(self)
def load_module(self):
if self.active:
Module.load_module(self)
@@
-1914,6
+1920,13
@@
class OSD(Module):
if self.fstype == 'smfs':
self.add_lustre_module('lvfs' , 'fsfilt_%s' % (self.backfstype))
if self.fstype == 'smfs':
self.add_lustre_module('lvfs' , 'fsfilt_%s' % (self.backfstype))
+ for options in self.mountfsoptions:
+ if options == 'snap':
+ if not self.fstype == 'smfs':
+ panic("mountoptions with snap, but fstype is not smfs\n")
+ self.add_lustre_module('lvfs', 'fsfilt_snap_%s' % (self.fstype))
+ self.add_lustre_module('lvfs', 'fsfilt_snap_%s' % (self.backfstype))
+
self.add_lustre_module(self.osdtype, self.osdtype)
def load_module(self):
self.add_lustre_module(self.osdtype, self.osdtype)
def load_module(self):