From: Miklos S. <mi...@sz...> - 2005-12-14 13:26:49
|
> I'm trying to make a new binding for a Scheme interpreter of my > own. This binding is nearly finished but I have three calls that > always give me problems. These calls are truncate utime and chown. > The symptom is the same for these three calls: even if I return 0, > finally the caller sees an EIO error. I have tried to track down > the problem in the library but was not able to figure where the value > is changed. Here is a trace of such a call: > > OPEN[1] flags: 0x8801 > unique: 18, error: 0 (Success), outsize: 32 > unique: 19, opcode: RELEASE (18), nodeid: 3, insize: 56 > RELEASE[1] flags: 0x8801 > unique: 19, error: 0 (Success), outsize: 16 > unique: 20, opcode: SETATTR (4), nodeid: 3, insize: 128 > unique: 20, error: 0 (Success), outsize: 112 > > So, everything seems correct in the library, but in the mounted > file system the touch command used there return an IO error. I'm almost sure that the cause is a bad st_mode value. Make sure that the file type (the upper bits of st_mode) are always correctly set. Miklos |