示例#1
0
 def is_mounted(self, *args, **kwargs):
     # Calls mount_status in return boolean mode.
     try:
         return mount_status('%s%s' % (settings.MNT_PT, self.name),
                             RETURN_BOOLEAN)
     except:
         return False
示例#2
0
 def is_mounted(self, *args, **kwargs):
     # Calls mount_status in return boolean mode.
     try:
         return mount_status('%s%s' % (settings.MNT_PT, self.name),
                             RETURN_BOOLEAN)
     except:
         return False
示例#3
0
 def mount_status(self, *args, **kwargs):
     # Presents raw string of active mount options akin to mnt_options field
     try:
         return mount_status('%s%s' % (settings.MNT_PT, self.name))
     except:
         return None
示例#4
0
 def is_mounted(self, *args, **kwargs):
     # Calls mount_status in return boolean mode.
     try:
         return mount_status(self.mnt_pt_var, RETURN_BOOLEAN)
     except:
         return False
示例#5
0
 def mount_status(self, *args, **kwargs):
     # Presents raw string of active mount options
     try:
         return mount_status(self.mnt_pt_var)
     except:
         return None
示例#6
0
 def mount_status(self, *args, **kwargs):
     # Presents raw string of active mount options akin to mnt_options field
     try:
         return mount_status('%s%s' % (settings.MNT_PT, self.name))
     except:
         return None