From: Joaquim Rocha <joaquim.rocha@cern.ch>
To: ceph-devel <ceph-devel@vger.kernel.org>
Subject: Problem in src_cmpxattr?
Date: Thu, 13 Nov 2014 15:03:35 +0100 [thread overview]
Message-ID: <5464BA37.1080801@cern.ch> (raw)
Hi there,
I need to create an object O (if it doesn't exist) and set an xattr on
it based on a condition that another xattr in a different object (X)
should obey. For this, on the same write operation (called on O) I call
create (not exclusively), setxattr and src_cmpxattr (with X as the
src_oid), respectively.
What I noticed is that if object O does not exist, the src_cmpxattr
returns -ENOENT (even if object X does exist). IMO, this error should
only be returned if X didn't exist and not O.
Is this the correct expectation for what src_cmpxattr should do (compare
an xattr on the given source object to the parameters given)?
Is this somehow expected? If so, is there any other way that I can
accomplish what I need as mentioned above?
Thank you in advance,
--
Joaquim Rocha
next reply other threads:[~2014-11-13 14:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-13 14:03 Joaquim Rocha [this message]
2014-11-13 14:42 ` Problem in src_cmpxattr? Sage Weil
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=5464BA37.1080801@cern.ch \
--to=joaquim.rocha@cern.ch \
--cc=ceph-devel@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.