Page MenuHomeFreeBSD

stat(2): add st_bsdflags field
ClosedPublic

Authored by kib on Wed, Apr 2, 8:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 19, 3:30 AM
Unknown Object (File)
Tue, Apr 15, 9:20 AM
Unknown Object (File)
Mon, Apr 14, 2:24 PM
Unknown Object (File)
Sun, Apr 13, 6:25 AM
Unknown Object (File)
Sat, Apr 12, 11:41 PM
Unknown Object (File)
Sat, Apr 5, 1:15 AM
Unknown Object (File)
Fri, Apr 4, 11:48 AM
Unknown Object (File)
Fri, Apr 4, 5:17 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.