tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Quota on tmpfs



On Jul 18, 2012, at 12:11 PM, Mouse wrote:

>>> Um, why would anything quota-related ever cause errors from lseek?
>> Because he applies quotas to file length.  The lseek is what will
>> take you over quota, whether you ever write or not.
> 
> At least in my experience, lseek never affects any file's size.  lseek
> such that the file pointer is left past EOF sets it up so a write will
> extend the file (with a hole, if far enough past EOF and holes are
> supported), but the lseek itself shouldn't do anything to file size.

Agreed, that's the correct operation of lseek.  If some version of lseek 
touches quota, that would be a bug.

        paul




Home | Main Index | Thread Index | Old Index