Bug 17872
Summary: | ext4 does not honour chattr +s attribute | ||
---|---|---|---|
Product: | File System | Reporter: | Rob Fortune (usedonlytosignup) |
Component: | ext4 | Assignee: | fs_ext4 (fs_ext4) |
Status: | RESOLVED WILL_NOT_FIX | ||
Severity: | enhancement | CC: | adilger.kernelbugzilla, alan |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.34 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Rob Fortune
2010-09-06 02:35:14 UTC
Please read the man page carefully: When a file with the ‘s’ attribute set is deleted, its blocks are zeroed and written back to the disk. Note: please make sure to read the bugs and limitations section at the end of this document. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : : BUGS AND LIMITATIONS The ‘c’, ’s’, and ‘u’ attributes are not honored by the ext2 and ext3 ^^^ filesystems as implemented in the current mainline Linux kernels. These attributes may be implemented in future versions of the ext2 and ext3 filesystems. I agree it is a bug that the _man_page_ doesn't also mention ext4 as NOT zeroing out blocks when "+s" is used. It makes me wonder why these "features" are mentioned in the man page at all, since it never worked and there is no plan to make it work. Since this question comes up on a regular basis, it makes me wonder if it would be better to just remove mention of these options until they are actually implemented. When they ARE implemented, they should list explicitly which filesystems DO support those features, rather than redirecting to the end of the document. My bad for missing the not. Your comment is spot on, mentioning non-existent features is pointless. It should be done the way you suggested. Pointless and confusing. And apologies for the spammy third reply but a three to five pass random wipe before zeroing them would be a much better feature than just zeroing them anyway. |