On 04/18/2017 12:05 PM, Samuel Sieb wrote:
On 04/18/2017 10:55 AM, JD wrote:
On 04/18/2017 04:02 AM, Patrick O'Callaghan wrote:
On Mon, 2017-04-17 at 21:07 -0600, JD wrote:
Hi all,
is there a way to force the flush (write out) of ext3 journal AND data
WITHOUT unmounting it?
sync(1)
poc
Tried it.
No go.
Sync seems to only flush out the unwritten metadata inodes, not the
data pages.
How can you tell that? If it's not, then that's a serious kernel bug.
See the man page. There are options for only metadata or only file
data, but the default is both.
1. kill all your apps that keep updating something (firefox, thunderbird
....etc). and run sync as many times as you like.
If the journal were actually sync'ed, and you immediately suspepded to disk,
and disconnected the drive in question, and connected it to another
system (it is a usb drive),
you will see that the system you connected it to will see an unclean
disk, and force fsck
and will put all the blocks listed in the journal to the free list.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx