lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 23 Oct 2015 13:04:54 +0900
From:	Masanari Iida <standby24x7@...il.com>
To:	linux-ext4@...r.kernel.org
Subject: Question about ext4 journal

Hello Developer,
I have a question about ext4's internal.

OS: RHEL6.2
Filesystem EXT4
mount option = ordered

My understanding on ext4 with ordered mode,
When a file is created,  data is written to FS block,
At the same time,  metadata is stored into journal,
and then meta data on journal is written to the inode block.
What is the next?

My question is
Does the kernel remove the meta data on journal after each successful
 transaction?

As I see the contents of journal entries in EXT4 using debugfs(8),
the journal entries are growing when creating or deleting the files.
I am curious to know what make the system to remove journal entries
while mounted the fs.

Background of the question.
I have encountered a case that when I delete and create some files,
journal entry for deleting the file exist
But journal entry for creating the file was not exist.
FYI, the file itself exist when I see it by using debugfs.

I created snapshot of the filesystem and  run fsck on copy image.
Then the file was _removed_ by fsck operation.
This is why I want to know how journal on EXT4 were controlled.

Thanks
Masanari
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists