Repository navigation
Commit 6a0678a
ext4: super: extend timestamps to 40 bits
The inode timestamps use 34 bits in ext4, but the various timestamps in
the superblock are limited to 32 bits. If every user accesses these as
'unsigned', then this is good until year 2106, but it seems better to
extend this a bit further in the process of removing the deprecated
get_seconds() function.
This adds another byte for each timestamp in the superblock, making
them long enough to store timestamps beyond what is in the inodes,
which seems good enough here (in ocfs2, they are already 64-bit wide,
which is appropriate for a new layout).
I did not modify e2fsprogs, which obviously needs the same change to
actually interpret future timestamps correctly.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent b42d1d6 commit 6a0678a
3 files changed
Lines changed: 55 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1295 | 1295 | | |
1296 | 1296 | | |
1297 | 1297 | | |
1298 | | - | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
1299 | 1306 | | |
1300 | 1307 | | |
1301 | 1308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
315 | 333 | | |
316 | 334 | | |
317 | 335 | | |
| |||
322 | 340 | | |
323 | 341 | | |
324 | 342 | | |
325 | | - | |
| 343 | + | |
326 | 344 | | |
327 | 345 | | |
328 | 346 | | |
329 | 347 | | |
| 348 | + | |
330 | 349 | | |
331 | 350 | | |
332 | 351 | | |
| |||
2174 | 2193 | | |
2175 | 2194 | | |
2176 | 2195 | | |
2177 | | - | |
2178 | | - | |
| 2196 | + | |
| 2197 | + | |
2179 | 2198 | | |
2180 | 2199 | | |
2181 | 2200 | | |
| |||
2184 | 2203 | | |
2185 | 2204 | | |
2186 | 2205 | | |
2187 | | - | |
| 2206 | + | |
2188 | 2207 | | |
2189 | 2208 | | |
2190 | 2209 | | |
| |||
2875 | 2894 | | |
2876 | 2895 | | |
2877 | 2896 | | |
2878 | | - | |
2879 | | - | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
2880 | 2900 | | |
2881 | 2901 | | |
2882 | 2902 | | |
| |||
2889 | 2909 | | |
2890 | 2910 | | |
2891 | 2911 | | |
2892 | | - | |
2893 | | - | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
2894 | 2915 | | |
2895 | 2916 | | |
2896 | 2917 | | |
| |||
4813 | 4834 | | |
4814 | 4835 | | |
4815 | 4836 | | |
4816 | | - | |
| 4837 | + | |
4817 | 4838 | | |
4818 | 4839 | | |
4819 | 4840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
185 | | - | |
186 | | - | |
| 187 | + | |
| 188 | + | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
| |||
249 | 251 | | |
250 | 252 | | |
251 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
252 | 263 | | |
253 | 264 | | |
254 | 265 | | |
| |||
287 | 298 | | |
288 | 299 | | |
289 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
290 | 305 | | |
291 | 306 | | |
292 | 307 | | |
| |||
0 commit comments