On Sun, Jan 07, 2001 at 01:55:15PM +, Alan Cox wrote:
> > + return -EPERM;
>
> To stop a case where the fs gets corrupted otherwise. You can change that to
> return 0 which is more correct but most not remove it.
While I suppose "0" is covered under "the result is unspe
Alan Cox wrote:
>
> > +
> > + /* FAT cannot truncate to a longer file */
> > + if (attr->ia_valid & ATTR_SIZE) {
> > + if (attr->ia_size > inode->i_size)
> > + return -EPERM;
> > + }
> >
> > error = inode_change_ok(inode, attr);
> >
Hi Alan,
On Sun, 7 Jan 2001, Alan Cox wrote:
> I wrote:
> > +
> > + /* FAT cannot truncate to a longer file */
> > + if (attr->ia_valid & ATTR_SIZE) {
> > + if (attr->ia_size > inode->i_size)
> > + return -EPERM;
> > + }
> >
> > erro
> +
> + /* FAT cannot truncate to a longer file */
> + if (attr->ia_valid & ATTR_SIZE) {
> + if (attr->ia_size > inode->i_size)
> + return -EPERM;
> + }
>
> error = inode_change_ok(inode, attr);
> if (error)
>
> Can someone te
4 matches
Mail list logo