From: Gilad R. <gi...@fa...> - 2008-07-24 16:51:36
|
Ok - solved. After stepping using GDB, fgetattr() is indeed called, but is not printed as an opcode.... That was the confusing part ;) (might want to fix that?!) Thanks! -- Gilad On Wed, 2008-07-23 at 19:08 +0200, Miklos Szeredi wrote: > On Wed, 23 Jul 2008, Gilad Rom wrote: > > Ok... let me rephrase that: > > > > Is there a reason for create() to fail, even if it returned > > 0 ? > > Yes, but only _after_ calling fgetattr() or getattr(), and only if > those either returned an error, or they returned an invalid st_mode > value. I pretty sure that it was the latter that caused CREATE to > return EIO in your case: > > | unique: 2514, opcode: CREATE (35), nodeid: 1, insize: 58 > | NODEID: 3 > | release: closing file /newfile13 > | delete: 3 > | unique: 2514, error: -5 (Input/output error), outsize: 16 > > Miklos |