All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem in src_cmpxattr?
@ 2014-11-13 14:03 Joaquim Rocha
  2014-11-13 14:42 ` Sage Weil
  0 siblings, 1 reply; 2+ messages in thread
From: Joaquim Rocha @ 2014-11-13 14:03 UTC (permalink / raw)
  To: ceph-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-13 14:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-13 14:03 Problem in src_cmpxattr? Joaquim Rocha
2014-11-13 14:42 ` Sage Weil

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.