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)
Mon, Sep 29, 10:42 AM
Unknown Object (File)
Sat, Sep 20, 5:56 PM
Unknown Object (File)
Thu, Sep 18, 8:41 PM
Unknown Object (File)
Thu, Sep 18, 5:09 AM
Unknown Object (File)
Thu, Sep 18, 5:05 AM
Unknown Object (File)
Thu, Sep 18, 2:58 AM
Unknown Object (File)
Wed, Sep 17, 9:12 AM
Unknown Object (File)
Sun, Sep 14, 8:54 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.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 ↗(On Diff #153058)

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.