From: Malahal Naineni <malahal@us.ibm.com>
To: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: NFSv4: truncate returns I/O error
Date: Tue, 6 Mar 2012 09:08:43 -0600 [thread overview]
Message-ID: <20120306150842.GA7453@us.ibm.com> (raw)
In-Reply-To: <1331043405.3260.4.camel@lade.trondhjem.org>
Myklebust, Trond [Trond.Myklebust@netapp.com] wrote:
> On Tue, 2012-03-06 at 11:10 +0100, Miklos Szeredi wrote:
> > The attached test program reliably fails on an NFSv4 mount.
> >
> > # mount -tnfs -onfsvers=4 127.0.0.1:/ /mnt/nfs
> > # ./truncate-test /mnt/nfs/tmp/xyz
> > truncate: Input/output error
> >
> > Thanks,
> > Miklos
>
> Thanks! I'll see if I can reproduce and figure out what's going wrong.
I could reproduce on RHEL6.2. If I remove the second open (O_RDONLY),
then it works fine.
If I do "chmod" (probably others too) on that failing file, then truncate
works on it. Looks like some kind of attribute validation issue, I will
test it more if I get a chance.
Regards, Malahal.
next prev parent reply other threads:[~2012-03-06 15:09 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-06 10:10 NFSv4: truncate returns I/O error Miklos Szeredi
2012-03-06 10:10 ` Miklos Szeredi
2012-03-06 14:16 ` Myklebust, Trond
2012-03-06 14:16 ` Myklebust, Trond
2012-03-06 14:16 ` Myklebust, Trond
2012-03-06 15:08 ` Malahal Naineni [this message]
2012-03-07 22:40 ` [PATCH 0/2] " Trond Myklebust
2012-03-07 22:40 ` [PATCH 1/2] NFS: Properly handle the case where the delegation is revoked Trond Myklebust
2012-03-07 22:40 ` [PATCH 2/2] NFSv4: Return the delegation if the server returns NFS4ERR_OPENMODE Trond Myklebust
2012-03-08 17:52 ` Olga Kornievskaia
2012-03-08 17:52 ` Olga Kornievskaia
2012-03-08 18:15 ` Myklebust, Trond
2012-03-08 18:15 ` Myklebust, Trond
2012-03-08 18:15 ` Myklebust, Trond
2012-03-08 20:23 ` Olga Kornievskaia
2012-03-08 20:23 ` Olga Kornievskaia
2012-03-08 20:42 ` J. Bruce Fields
2012-03-08 20:50 ` Myklebust, Trond
2012-03-08 20:50 ` Myklebust, Trond
2012-03-08 20:50 ` Myklebust, Trond
2012-03-08 20:57 ` J. Bruce Fields
2012-03-08 21:02 ` Myklebust, Trond
2012-03-08 21:02 ` Myklebust, Trond
2012-03-08 21:02 ` Myklebust, Trond
2012-03-08 21:09 ` J. Bruce Fields
2012-03-08 21:12 ` Boaz Harrosh
2012-03-08 21:12 ` Boaz Harrosh
2012-03-08 21:27 ` Olga Kornievskaia
2012-03-08 21:27 ` Olga Kornievskaia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120306150842.GA7453@us.ibm.com \
--to=malahal@us.ibm.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.