def set_maximum_size(self, volume):
        filesystem = self.get(volume)
        root = filesystem.get_path()

        def get_size():
            total_size = 0
            for f in root.walk():
                if not f.isdir():
                    total_size += f.getsize()
            return total_size

        current_size = get_size()
        size_path = root.child(b".size")
        if volume.size.maximum_size is not None:
            if current_size < volume.size.maximum_size:
                raise MaximumSizeTooSmall()
            size_path.setContent(
                u"{0}".format(volume.size.maximum_size).encode("ascii"))
        elif size_path.exists():
            size_path.remove()
        return succeed(filesystem)
dataset/ETHPy150Open ClusterHQ/flocker/flocker/volume/filesystems/memory.py/FilesystemStoragePool.set_maximum_size/swapped operands of `<`