wensheng liu
2010-Mar-17 09:43 UTC
[zfs-discuss] How to reserve space for a file on a zfs filesystem
Hi all, How to reserve a space on a zfs filesystem? For mkfiel or dd will write data to the block, it is time consuming. whiel "mkfile -n" will not really hold the space. And zfs''s set reservation only work on filesytem, not on file? Could anyone provide a solution for this? Thanks very much Vincent
Giovanni Tirloni
2010-Mar-17 14:32 UTC
[zfs-discuss] How to reserve space for a file on a zfs filesystem
On Wed, Mar 17, 2010 at 6:43 AM, wensheng liu <vincent.liuws at gmail.com>wrote:> Hi all, > > How to reserve a space on a zfs filesystem? For mkfiel or dd will write > data to the > block, it is time consuming. whiel "mkfile -n" will not really hold the > space. > And zfs''s set reservation only work on filesytem, not on file? > > Could anyone provide a solution for this? >Do you mean you want files created with "mkfile -n" to count against the total filesystem usage ? Since they''ve not allocated any blocks yet, ZFS would need to know about each spare file and read it''s metadata before enforcing the filesystem reservation. I''m not sure it''s doable. -- Giovanni -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100317/3084a6ed/attachment.html>