I read somewhere that it does its work...slowly.  I presume the "quotas"
file is sparse, so couldn't quotacheck use the new SEEK_DATA/SEEK_HOLE
functionality to skip past holes rather than having to read in and skip over
so many zero records from the "quotas" file?

Maybe I'm off my rocker, but if it could be done, it seems like it would
be a heck of a lot faster.

Given that it looks like quotacheck uses stdio, it might help if fseek(3c)
could also support SEEK_DATA/SEEK_HOLE.  The code doesn't seem to me
to preclude it, but I haven't thought through whether or not it would behave
sanely with those.  And at least as of Solaris 10, the man page didn't mention
the possibility. Also, I have no idea why
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/stdio/fseek.c#66
uses the constant 1 rather than SEEK_CUR.
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to