reason for not supporting online shrink in ext4
Shrinking volume offline is possible in ext4.
Can anyone please tell me what are the issues in implementing shrinking volume online in ext4.
Thanks,
Raphel
Announcement
Collapse
No announcement yet.
why online shrink is not supported with EXT4_IOC_RESIZE_FS?
Collapse
X
-
why online shrink is not supported with EXT4_IOC_RESIZE_FS?
Hi,
I was referring EXT4_IOC_RESIZE_FS ioctl implementation in linux kernel ver 3.3.8.
It is given in the code that online shrinking not supported.
if (n_blocks_count < o_blocks_count) {
/* On-line shrinking not supported */
ext4_warning(sb, "can't shrink FS - resize aborted");
return -EINVAL;
}
Can anyone please tell the reason why online shrinking is not supported.
Thanks in adavance.
Regards,
RaphelTags: None
Leave a comment: