Displaying 2 results from an estimated 2 matches for "s_kbytes_written".
2014 Oct 17
0
Re: CF Card wear optimalisation for ext4
...system
call. But if you crash, any writes since the last syncfs(2), sync(2),
or umount(2) call on the file system can get lost, yes.
> Also the value is only available in granularity of 1 GB (plus minus
> 512MB) - at least in my case.
This is what dumpe2fs is currently using:
if (sb->s_kbytes_written) {
fprintf(f, "Lifetime writes: ");
if (sb->s_kbytes_written < POW2(13))
fprintf(f, "%llu kB\n", sb->s_kbytes_written);
else if (sb->s_kbytes_written < POW2(23))
fprintf(f, "%llu MB\n",
(sb->s_kbytes_written + POW2(9)) >>...
2014 Oct 16
2
Re: CF Card wear optimalisation for ext4
* Andreas Dilger <adilger@dilger.ca> hat geschrieben:
> The "lifetime writes" value has not been around forever, so if the
> filesystem was originally created and populated on an older kernel
> (e.g. using ext3) it would not contain a record of those writes.
It was created as stable ext4 in the first place. So only if there was a
stable ext4 release which didn't