[issue31313] Feature Add support of os.chflags() on Linux platform

2017-09-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Uh, of course, we care about SETFLAGS here. Which gives: EXT2_IOC_SETFLAGS = 0x40086602, FS_IOC_SETFLAGS = 0x40086602 -- ___ Python tracker ___

[issue31313] Feature Add support of os.chflags() on Linux platform

2017-09-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: On Ubuntu 16.04 I get the following values: EXT2_IOC_SETFLAGS = 0x40086602, FS_IOC_GETFLAGS = 0x80086601 -- ___ Python tracker ___ _

[issue31313] Feature Add support of os.chflags() on Linux platform

2017-09-01 Thread Марк Коренберг
Марк Коренберг added the comment: Well, it seems, you are right. But there are another ioctls (maybe they are the same, I haven't checked): FS_IOC_SETFLAGS FS_IOC_GETFLAGS http://man7.org/tlpi/code/online/book/files/chiflag.c.html (also attached) -- Added file: http://bugs.python.org

[issue31313] Feature Add support of os.chflags() on Linux platform

2017-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Judging by the ioctl name, this is ext2/ext3/ext4 specific? -- nosy: +larry, neologix, pitrou versions: -Python 3.6 ___ Python tracker ___

[issue31313] Feature Add support of os.chflags() on Linux platform

2017-08-31 Thread Марк Коренберг
New submission from Марк Коренберг: Yes, chflags() is not supported by linux directly. But actually, Linux supports chflags functionality: https://stackoverflow.com/questions/34176464/why-os-chflags-doesnt-work-under-linux through ioctl (fd, EXT2_IOC_SETFLAGS, ) -- components: Librar