I would expect it reproduces everywhere.  The problem is that we set the
refreservation, then receive the first snapshot which references more than
it's allowed to, so it fails.  The alternative would be to set the
refreservation at the end, with the understanding that you might be in
violation then.

--matt

On Fri, Nov 20, 2015 at 10:05 AM, Prakash Surya <prakash.su...@delphix.com>
wrote:

> sure thing, this is on my laptop with ZFS on Linux installed:
>
>     # zfs create -o compress=off -o dedup=off zfs/foo
>
>     # dd if=/dev/urandom of=/zfs/foo/bar bs=1M count=100
>
>     100+0 records in
>
>     100+0 records out
>
>     104857600 bytes (105 MB) copied, 7.60125 s, 13.8 MB/s
>
>     # dd if=/dev/urandom of=/zfs/foo/baz bs=1M count=100
>
>     100+0 records in
>
>     100+0 records out
>
>     104857600 bytes (105 MB) copied, 7.65689 s, 13.7 MB/s
>
>     # zfs snapshot zfs/foo@1
>
>     # rm /zfs/foo/baz
>
>     # zfs set refquota=150M zfs/foo
>
>     # zfs list zfs/foo
>
>     NAME      USED  AVAIL  REFER  MOUNTPOINT
>
>     zfs/foo   200M  49.9M   100M  /zfs/foo
>
>     # zfs snapshot zfs/foo@2
>
>     # zfs send -R zfs/foo@2 | zfs recv zfs/bar
>
>     cannot receive new filesystem stream: destination zfs space quota
> exceeded
>     warning: cannot send 'zfs/foo@1': Broken pipe
>
>     warning: cannot send 'zfs/foo@2': Broken pipe
>
>     # uname -a
>
>     Linux filbert.delphix.com 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27
> 08:13:28 CET 2015 x86_64 GNU/Linux
>     # dmesg | grep ZFS
>
>     [    1.725879] ZFS: Loaded module v0.6.5.3-1, ZFS pool version 5000,
> ZFS filesystem version 5
>
> does that help?
>
> On Fri, Nov 20, 2015 at 8:23 AM, Dan McDonald <dan...@omniti.com> wrote:
>
>> This bug report:
>>
>>         https://www.illumos.org/issues/4986
>>
>> has an easy-to-reproduce set of steps.  Can I get confirmation that this
>> problem is also a problem on ZoL and/or FreeBSD?  I have neither handy.
>>
>> Thanks,
>> Dan
>> _______________________________________________
>> developer mailing list
>> developer@open-zfs.org
>> http://lists.open-zfs.org/mailman/listinfo/developer
>>
>
>
> _______________________________________________
> developer mailing list
> developer@open-zfs.org
> http://lists.open-zfs.org/mailman/listinfo/developer
>
>
_______________________________________________
developer mailing list
developer@open-zfs.org
http://lists.open-zfs.org/mailman/listinfo/developer

Reply via email to