On Wed, Mar 17, 2010 at 6:43 AM, wensheng liu <vincent.li...@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
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to