[Rpm-maint] [rpm-software-management/rpm] Add posix.statvfs to rpmlua (PR #4122)
Panu Matilainen
notifications at github.com
Wed Mar 4 12:02:22 UTC 2026
@pmatilai commented on this pull request.
> + case 5: lua_pushinteger(L, (lua_Integer)buf->f_files); break;
+ case 6: lua_pushinteger(L, (lua_Integer)buf->f_ffree); break;
+ case 7: lua_pushinteger(L, (lua_Integer)buf->f_favail); break;
+ case 8: lua_pushinteger(L, (lua_Integer)buf->f_fsid); break;
+ case 9: lua_pushinteger(L, (lua_Integer)buf->f_flag); break;
+ case 10:lua_pushinteger(L, (lua_Integer)buf->f_namemax); break;
+ default: return 0;
+ }
+ return 1;
+}
+
+static const char *const Sstatvfs[] =
+{
+ "f_bsize", "f_frsize", "f_blocks", "f_bfree", "f_bavail",
+ "f_files", "f_ffree", "f_favail", "f_fsid", "f_flag",
+ "f_namemax", NULL
Let's drop the `f_` prefixes, we don't carry them for stat or other similar constructs either.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4122#pullrequestreview-3889010882
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4122/review/3889010882 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260304/d0a18ff2/attachment.htm>
More information about the Rpm-maint
mailing list