GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in os.chflags() · Issue #87105 · python/cpython

Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in os.chflags() #87105

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in os.chflags()#87105
Copy link
Labels
3.10 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory

Description

socketpair
mannequin
opened on Jan 16, 2021
Issue body actions
BPO 42939
Nosy @tiran, @socketpair, @eryksun, @corona10

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 2021-01-16.14:25:34.618>
labels = ['library', '3.9', '3.10']
title = "Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in os.chflags()"
updated_at = <Date 2021-01-30.20:50:43.418>
user = 'https://github.com/socketpair'

bugs.python.org fields:

activity = <Date 2021-01-30.20:50:43.418>
actor = 'eryksun'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2021-01-16.14:25:34.618>
creator = 'socketpair'
dependencies = []
files = []
hgrepos = []
issue_num = 42939
keywords = []
message_count = 2.0
messages = ['385141', '385995']
nosy_count = 4.0
nosy_names = ['christian.heimes', 'socketpair', 'eryksun', 'corona10']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue42939'
versions = ['Python 3.9', 'Python 3.10']

Activity

  1. socketpair commented on Jan 16, 2021

    @socketpair
    socketpairmannequin
    on Jan 16, 2021
    MannequinAuthor
    More actions

    https://man7.org/linux/man-pages/man2/ioctl_iflags.2.html

    Seems the ioctl is only way to implement chattr(). I propose to add all these flags to os.chflags() and to gain its support in Linux.

  2. socketpair
    added
    3.9 (EOL)end of lifeend of life
    3.10 (EOL)end of lifeend of life
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Jan 16, 2021
  3. eryksun commented on Jan 30, 2021

    @eryksun
    eryksun
    on Jan 30, 2021
    Contributor
    More actions

    bpo-39533 is a related issue that seeks to support the Linux statx() system call. A statx record includes an stx_attributes field, which supports the following file attributes that can be set with chattr:

    [a]ppend    : STATX_ATTR_APPEND
    [c]ompressed: STATX_ATTR_COMPRESSED
    no [d]ump   : STATX_ATTR_NODUMP
    [i]mmutable : STATX_ATTR_IMMUTABLE
    da[x]       : STATX_ATTR_DAX (5.8)
    

    and the following read-only file attributes that can be listed with lsattr:

    [E]ncrypted : STATX_ATTR_ENCRYPTED
    [V]erity    : STATX_ATTR_VERITY (5.5)
    
  4. ezio-melotti
    transferred this issue fromon Apr 10, 2022
  5. serhiy-storchaka
    added this to OS issues 💻on Jul 3, 2026
  6. github-project-automation
    moved this to Todo in OS issues 💻on Jul 3, 2026
  7. encukou commented on Aug 25, 2026

    @encukou
    encukou
    on Aug 25, 2026
    Member
    More actions

    This is a duplicate of #75494.

  8. encukou
    closed this as a duplicateof Feature Add support of os.chflags() on Linux platform #75494 on Aug 25, 2026
  9. github-project-automation
    moved this from Todo to Done in OS issues 💻on Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory

    Projects

    • OS issues 💻
      Status
      Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.