[issue42939] Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in os.chflags()

2021-01-30 Thread Eryk Sun


Eryk Sun  added the comment:

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)

--
nosy: +eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42939] Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in os.chflags()

2021-01-30 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42939] Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in os.chflags()

2021-01-17 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +christian.heimes

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42939] Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in os.chflags()

2021-01-16 Thread Марк Коренберг

New submission from Марк Коренберг :

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.

--
components: Library (Lib)
messages: 385141
nosy: socketpair
priority: normal
severity: normal
status: open
title: Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in 
os.chflags()
versions: Python 3.10, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com