diff options
author | Giuseppe Scrivano <gscrivano@gnu.org> | 2017-12-14 22:46:46 (GMT) |
---|---|---|
committer | Fred Drake <fred@fdrake.net> | 2017-12-14 22:46:46 (GMT) |
commit | 96a5e50a5de3683b2afd6d680c7ecc4b525986f6 (patch) | |
tree | f4adb6717deabda9d44a447ce2aa6edc5ea3bb6b /Modules | |
parent | 2b5fd1e9ca9318673989e6ccac2c8acadc3809cd (diff) | |
download | cpython-96a5e50a5de3683b2afd6d680c7ecc4b525986f6.zip cpython-96a5e50a5de3683b2afd6d680c7ecc4b525986f6.tar.gz cpython-96a5e50a5de3683b2afd6d680c7ecc4b525986f6.tar.bz2 |
bpo-32143: add f_fsid to os.statvfs() (#4571)
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index fb879e3..448d4b7 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1860,6 +1860,7 @@ static PyStructSequence_Field statvfs_result_fields[] = { {"f_favail", }, {"f_flag", }, {"f_namemax",}, + {"f_fsid", }, {0} }; @@ -9324,6 +9325,7 @@ _pystatvfs_fromstructstatvfs(struct statvfs st) { PyStructSequence_SET_ITEM(v, 8, PyLong_FromLong((long) st.f_flag)); PyStructSequence_SET_ITEM(v, 9, PyLong_FromLong((long) st.f_namemax)); #endif + PyStructSequence_SET_ITEM(v, 10, PyLong_FromUnsignedLong(st.f_fsid)); if (PyErr_Occurred()) { Py_DECREF(v); return NULL; |