Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#41 closed defect (fixed)

libc: st_dev and st_ino isn't set if the file has some EAs but not UnixEAs. — at Version 1

Reported by: bird Owned by: bird
Priority: normal Milestone: libc-0.6.1
Component: libc-backend Version: 0.6
Severity: normal Keywords: unixeas stat
Cc:

Description (last modified by bird)

we're not checking if we actually read any UnixEAs in __libc_back_fsUnixAttribsGet().

Change History (1)

comment:1 by bird, 19 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

That's not quite right. the fstat backend is delaying the dev/ino calc until after getting unix attribs and won't do it unless the unix attrib call fails. I've added code to generate ino/dev when they are not present on a successful return from the attribute getter. I've also changed the two set file mode backend functions to use a different API for querying the file-mode mask, both for speed and so we don't add the MODE attribute unless it's already there (i.e. LIBC created the file). That'll cause less worries for now (it'll be changed in 0.7, probably).

Note: See TracTickets for help on using tickets.