Neil Sharman wrote:
> Hi,
>
> While testing how my application behaves on zfs when the underlying file
> system fills up I found that the msync system call can return a EDQUOT. The
> documentation for msync does not indicate that it can return EDQUOT. I've
> created an example program that illustrates the failure.
>
> If you look at the program you will see that it creates a file, writes 16K to
> it, syncs the file. Subsequently it mmaps in the file and repeatedly msyncs
> while filling up the filesystem through the growth of a different file.
> Eventually one of the msyncs fails with EDQUOT, this failure seems bad and
> wrong.
>
> I also find it a little strange that it returns EDQUOT rather that ENOSPC,
> but lets not get into that.
>
Neil,
Is there a quota set on that filesystem (or on any of its
ZFS ancestors)? When I run your test I get ENOSPC, which
is to be expected.
-Chris