Page MenuHomeFreeBSD

cd9660: Add support for birth times
ClosedPublic

Authored by jhb on Wed, Jun 10, 2:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 6, 2:32 PM
Unknown Object (File)
Sun, Jul 5, 3:15 PM
Unknown Object (File)
Sat, Jul 4, 8:24 AM
Unknown Object (File)
Fri, Jul 3, 7:28 AM
Unknown Object (File)
Fri, Jul 3, 5:44 AM
Unknown Object (File)
Wed, Jul 1, 1:52 AM
Unknown Object (File)
Wed, Jul 1, 12:56 AM
Unknown Object (File)
Tue, Jun 30, 3:17 PM
Subscribers

Details

Summary

Both the Extended Attribute Record in the base ISO-9660 standard and
the RockRidge timestamp extension support a file creation timestamp.
Use this to populate the birthtime if present.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Wed, Jun 10, 2:35 PM
markj added inline comments.
sys/fs/cd9660/cd9660_node.c
181

Why is it okay to ignore a conversion failure here? Ah, the birthtime will just be zeroed out in that case. I'd at least add an explicit cast to void for the return value.

This revision is now accepted and ready to land.Mon, Jun 15, 2:16 PM
This revision now requires review to proceed.Mon, Jun 22, 5:33 PM
jhb added inline comments.
sys/fs/cd9660/cd9660_node.c
181

I've addressed this in the parent review I think where I use a more explicit memset just as in the RRIP code. I ended up doing a bit more work in that parent review as upon closer review, the parsing of the timestamps in this function before was just odd.

This revision was not accepted when it landed; it landed in state Needs Review.Tue, Jun 23, 3:52 PM
This revision was automatically updated to reflect the committed changes.
danfe added inline comments.
sys/fs/cd9660/cd9660_node.h
50

Why not iso_btime for consistency with others?

sys/fs/cd9660/cd9660_node.h
50

It actually is consistent with stat(2).

sys/fs/cd9660/cd9660_node.h
50

Oh, I see, thanks. Then I guess it's too late to ask this question about stat(2) now. :-)