Thread (283 messages) 283 messages, 37 authors, 2007-07-12

Re: [RFC] Heads up on sys_fallocate()

From: Alan <hidden>
Date: 2007-03-01 22:58:55
Also in: linux-fsdevel, lkml

On Thu, 01 Mar 2007 13:14:32 -0800
Jeremy Fitzhardinge [off-list ref] wrote:
Amit K. Arora wrote:
quoted
+	if (inode->i_op && inode->i_op->fallocate)
+		ret = inode->i_op->fallocate(inode, offset, len);
+	else
+		ret = -ENOTTY;
You can only allocate space on typewriters? ;)
A lot of people get confused about -ENOTTY, but it is the return for
attempting to use an ioctl on the wrong type of object, so this appears
to be quite correct.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help