Page MenuHomeFreeBSD

stat(2): add st_bsdflags field
ClosedPublic

Authored by kib on Apr 2 2025, 8:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 4 2025, 3:14 AM
Unknown Object (File)
Nov 4 2025, 3:14 AM
Unknown Object (File)
Nov 4 2025, 3:14 AM
Unknown Object (File)
Nov 4 2025, 3:14 AM
Unknown Object (File)
Oct 29 2025, 11:52 PM
Unknown Object (File)
Oct 24 2025, 12:30 AM
Unknown Object (File)
Oct 23 2025, 6:59 PM
Unknown Object (File)
Oct 23 2025, 11:20 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Apr 2 2025, 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.Apr 2 2025, 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.Apr 2 2025, 9:34 PM
markj added inline comments.
sys/fs/tmpfs/tmpfs_vnops.c
480

This is unneeded too.

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