Re: [PATCH] loop file resizable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pdraig_Brady:
> Are you always going to increase the size?
> LOOP_SET_CAPACITY suggests you might be better to use
> a more general --set-capacity option?

Increase only, as xfs_growfs and resize2fs (during mounted) do.
If other filesystem supports online shrinking, then --set-capacity will
be better, I agree.


> There is a patch in the works to give `truncate` an --allocate option
> which will then in turn call posix_fallocate(). This has the advantage

I see.


> That strikes me as a little awkward but also I'm not sure
> that losetup should be messing around with the file size at all,
> especially considering the offset parameter (I didn't notice
> handling of this in the patch).

I don't think the offset is important at growing the backend file.
Anyway as long as you don't like modifying losetup, I'd suggest a new
utility logrow.
Once "truncate" suppports --allocate, then losetup will support
LOOP_SET_CAPACITY simply.


J. R. Okajima
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux