Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.statvfs_result doesn't show f_fsid #86627

Open
Rethan mannequin opened this issue Nov 25, 2020 · 4 comments
Open

os.statvfs_result doesn't show f_fsid #86627

Rethan mannequin opened this issue Nov 25, 2020 · 4 comments
Labels
3.10 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@Rethan
Copy link
Mannequin

Rethan mannequin commented Nov 25, 2020

BPO 42461
Nosy @tiran, @Rethan
PRs
  • bpo-42461: show f_fsid when pring os.statvfs object #23511
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2020-11-25.10:06:55.159>
    labels = ['type-bug', 'library', '3.10']
    title = "os.statvfs_result doesn't show f_fsid"
    updated_at = <Date 2020-12-04.10:42:23.909>
    user = 'https://github.com/Rethan'

    bugs.python.org fields:

    activity = <Date 2020-12-04.10:42:23.909>
    actor = 'Rethan'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-11-25.10:06:55.159>
    creator = 'Rethan'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42461
    keywords = ['patch']
    message_count = 4.0
    messages = ['381811', '381815', '381876', '382473']
    nosy_count = 2.0
    nosy_names = ['christian.heimes', 'Rethan']
    pr_nums = ['23511']
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42461'
    versions = ['Python 3.10']

    @Rethan
    Copy link
    Mannequin Author

    Rethan mannequin commented Nov 25, 2020

    From doc I see about os.statvfs "New in version 3.7: Added f_fsid.", but it doesn't show up when print an object os.statvfs returned. So I think maybe we can add the field when printing object.

    @Rethan Rethan mannequin added 3.10 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Nov 25, 2020
    @tiran
    Copy link
    Member

    tiran commented Nov 25, 2020

    Changeset 96a5e50 added a new struct member but did not increase PyStructSequence_Desc.n_in_sequence of
    statvfs_result_desc. I'm not sure if the size of the sequence was not increased on purpose.

    For reference the feature was added in bpo-32143.

    @Rethan
    Copy link
    Mannequin Author

    Rethan mannequin commented Nov 26, 2020

    Under my mac and fedora test environment, calling statfs in C language as a non-privileged user both returned meaningful fsid. And in python os.statvfs(some_path).f_fsid can also show the f_fsid of path. So I didn't see any inconveniences so far if object print shows it.

    @Rethan
    Copy link
    Mannequin Author

    Rethan mannequin commented Dec 4, 2020

    hi christian, is there any future suggestions?

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.10 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant