36
36
* @param orig The original file (may be immutable)
37
37
* @param copy Updated to contain the filename of the mutable copy
38
38
* @param copy_len The size of the buffer to store the filename of the copy
39
- * @param override Whether to actually do override (original filename is
40
- * copied to copy buffer if false)
39
+ * @param override Whether to actually do override (i.e. temporarily clear it).
40
+ * The original filename is copied to copy- buffer if false
41
41
* @return false in case of failure
42
42
*/
43
43
bool OverrideImmutableBegin (
@@ -48,7 +48,7 @@ bool OverrideImmutableBegin(
48
48
* replaces it with the mutated copy
49
49
* @param orig The original file (may be immutable)
50
50
* @param copy The mutated copy to replace the original
51
- * @param override Whether to actually do override
51
+ * @param override Whether to actually do override (i.e. temporarily clear it)
52
52
* @param abort Whether to abort the override
53
53
* @return false in case of failure
54
54
* @note The immutable bit is reset to it's original state
@@ -60,7 +60,7 @@ bool OverrideImmutableCommit(
60
60
* @brief Change mode on an immutable file
61
61
* @param filename Name of the file
62
62
* @param mode The file mode
63
- * @param override Whether to actually do override
63
+ * @param override Whether to actually do override (i.e. temporarily clear it)
64
64
* @return false in case of failure
65
65
* @note It uses safe_chmod() under the hood
66
66
*/
@@ -71,7 +71,7 @@ bool OverrideImmutableChmod(const char *filename, mode_t mode, bool override);
71
71
* new to the old
72
72
* @param old_filename Filename of the old file
73
73
* @param new_filename Filename of the new file
74
- * @param override Whether to actually do override
74
+ * @param override Whether to actually do override (i.e. temporarily clear it)
75
75
* @return false in case of failure
76
76
*/
77
77
bool OverrideImmutableRename (
@@ -80,7 +80,7 @@ bool OverrideImmutableRename(
80
80
/**
81
81
* @brief Delete immutable file
82
82
* @param filename Name of the file to delete
83
- * @param override Whether to actually do override
83
+ * @param override Whether to actually do override (i.e. temporarily clear it)
84
84
* @return false in case of failure
85
85
*/
86
86
bool OverrideImmutableDelete (const char * filename , bool override );
@@ -89,7 +89,7 @@ bool OverrideImmutableDelete(const char *filename, bool override);
89
89
* @brief Temporarily clears the immutable bit and changes access and
90
90
* modification times of the inode
91
91
* @param filename Name of the file to touch
92
- * @param override Whether to actually do override
92
+ * @param override Whether to actually do override (i.e. temporarily clear it)
93
93
* @param times Modification times (can be NULL)
94
94
* @return false in case of failure
95
95
*/
@@ -99,7 +99,7 @@ bool OverrideImmutableUtime(
99
99
/**
100
100
* @brief Temporarily clears the immutable bit (best effort / no guarantees)
101
101
* @param filename Name of the file to clear the immutable bit on
102
- * @param override Whether to actually do override
102
+ * @param override Whether to actually do override (i.e. temporarily clear it)
103
103
* @param is_immutable Whether or not the file actually was immutable
104
104
* @return Result of clearing the immutable bit (no to be interpreted by the
105
105
* caller)
@@ -110,7 +110,7 @@ FSAttrsResult TemporarilyClearImmutableBit(
110
110
/**
111
111
* @brief Reset temporarily cleared immutable bit
112
112
* @param filename Name of the file to clear the immutable bit on
113
- * @param override Whether to actually do override
113
+ * @param override Whether to actually do override (i.e. temporarily clear it)
114
114
* @param res The result from previously clearing it
115
115
* @param is_immutable Whether or not the file actually was immutable
116
116
*/
0 commit comments