Skip to content
Snippets Groups Projects
Commit e2c1f3aa authored by Wang Di's avatar Wang Di
Browse files

add snap support in lconf

parent 45cc6b8e
No related branches found
No related tags found
No related merge requests found
...@@ -1602,6 +1602,12 @@ class MDSDEV(Module): ...@@ -1602,6 +1602,12 @@ class MDSDEV(Module):
if self.fstype == 'smfs': if self.fstype == 'smfs':
self.add_lustre_module('lvfs', 'fsfilt_%s' % (self.backfstype)) 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): def load_module(self):
if self.active: if self.active:
Module.load_module(self) Module.load_module(self)
...@@ -1914,6 +1920,13 @@ class OSD(Module): ...@@ -1914,6 +1920,13 @@ class OSD(Module):
if self.fstype == 'smfs': if self.fstype == 'smfs':
self.add_lustre_module('lvfs' , 'fsfilt_%s' % (self.backfstype)) 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) self.add_lustre_module(self.osdtype, self.osdtype)
def load_module(self): def load_module(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment