Re: SSD's and many edits of a single file
- Date: Mon, 9 Apr 2018 13:28:01 +0200
- From: <tomas@xxxxxxxxxx>
- Subject: Re: SSD's and many edits of a single file
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, Apr 09, 2018 at 05:53:18AM -0400, Gene Heskett wrote:
> On Sunday 08 April 2018 23:13:28 Stefan Monnier wrote:
> > >> > And eventually the updates made to the file are not actually
> > >> > saved,
> > >>
> > >> Can you be more precise than "eventually"?
> > >
> > > Probably 100+ edits and saves over 4 or 5 hours.
> > >
> > >> More importantly: what makes you think they're not actually saved?
> > >
> > > Going to another shell and cat'ing the file shows the old contents.
> > So the actual disk isn't to blame (cat'ing a file that was just saved
> > won't look at the disk anyway).
> Whats it look at 5+ minutes later?
> The file had not been updated yet an hour later. Ext4's journal in my
> understanding has a maximum of 5 minutes to sync? Its now around 10
> hours later and has not yet been updated with the last two lines I'd
If the file system stays mounted, this all is irrelevant: it's the
OS's job to present all applications a consistent view of the
file system. Once the writing application (Geany, or whatever) has
committed its write the modification should be visible, whether
the OS has committed its buffers to the storage or not.
> > Sounds like a bug in your text editor.
Yep, that would be my hunch too.
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
-----END PGP SIGNATURE-----