Ejemplo n.º 1
0
 def real_get_text(self):
     if self.dinode:
         block_bits = self.fs.fs_clustersize >> self.super.s_blocksize_bits
         bytes = self.get_bits() * block_bits * self.fs.fs_blocksize
         return format_bytes(bytes, show_bytes=True)
     else:
         return EMPTY_TEXT
Ejemplo n.º 2
0
 def real_get_text(self):
     if self.dinode:
         block_bits = self.fs.fs_clustersize >> self.super.s_blocksize_bits
         bytes = self.get_bits() * block_bits * self.fs.fs_blocksize
         return format_bytes(bytes, show_bytes=True)
     else:
         return EMPTY_TEXT
Ejemplo n.º 3
0
    def __init__(self, minimum, maximum):
        BaseCombo.__init__(self)

        choices = [('Auto', False)]

        size = minimum
        while size <= maximum:
            choices.append((format_bytes(size), False))
            size = size << 1

        self.set_choices(choices)
Ejemplo n.º 4
0
    def __init__(self, minimum, maximum):
        BaseCombo.__init__(self)

        choices = [('Auto', False)]

        size = minimum
        while size <= maximum:
            choices.append((format_bytes(size), False))
            size = size << 1

        self.set_choices(choices)
Ejemplo n.º 5
0
 def real_get_text(self):
     return format_bytes(getattr(self.fs, self.member))
Ejemplo n.º 6
0
 def real_get_text(self):
     return format_bytes(getattr(self.fs, self.member))