Page MenuHomeFreeBSD

stat(2): add st_bsdflags field
ClosedPublic

Authored by kib on Wed, Apr 2, 8:45 PM.
Tags
None
Referenced Files
F113801941: D49651.id153058.diff
Thu, Apr 3, 8:16 PM
F113797053: D49651.id.diff
Thu, Apr 3, 6:40 PM
F113790022: D49651.id153058.diff
Thu, Apr 3, 4:11 PM
F113788698: D49651.id.diff
Thu, Apr 3, 3:40 PM
F113787736: D49651.diff
Thu, Apr 3, 3:16 PM
F113787587: D49651.diff
Thu, Apr 3, 3:12 PM
F113770050: D49651.diff
Thu, Apr 3, 8:50 AM
Subscribers

Diff Detail

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

Event Timeline

kib requested review of this revision.Wed, Apr 2, 8:45 PM

All looks good to me. (I am glad you did this. I would have missed
half of the places that needed to be changed.)

I think what I defined as VA_NAMEDATTR_TYPE needs to be replaced
with SFB_NAMEDATTR?

This revision is now accepted and ready to land.Wed, Apr 2, 8:57 PM

All looks good to me. (I am glad you did this. I would have missed
half of the places that needed to be changed.)

I think what I defined as VA_NAMEDATTR_TYPE needs to be replaced
with SFB_NAMEDATTR?

Yes, I wrote the patch with the assumption that va_bsdflags are filled directly by filesystem. So VA_NAMEDATTR_TYPE seems to be not needed.

sys/sys/stat.h
344

I'd use SFBSD_ as a prefix.

sys/ufs/ufs/ufs_vnops.c
565 ↗(On Diff #153055)

This isn't needed I think, vop_stat_helper_pre() clears the new field.

kib marked 2 inline comments as done.

SFBSD_

This revision now requires review to proceed.Wed, Apr 2, 9:34 PM
markj added inline comments.
sys/fs/tmpfs/tmpfs_vnops.c
480 ↗(On Diff #153058)

This is unneeded too.

This revision is now accepted and ready to land.Thu, Apr 3, 1:18 PM
kib marked an inline comment as done.Thu, Apr 3, 2:45 PM
This revision was automatically updated to reflect the committed changes.