Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for LogFS Fillesystem #715

Open
shiren00 opened this issue Oct 25, 2024 · 1 comment
Open

Add support for LogFS Fillesystem #715

shiren00 opened this issue Oct 25, 2024 · 1 comment
Assignees

Comments

@shiren00
Copy link

shiren00 commented Oct 25, 2024

We would appreciate it if anyone with additional materials or actual dump files related to this could share them :D

@shiren00
Copy link
Author

shiren00 commented Nov 2, 2024

I'm not sure how to mount it, but since only mkfs.logfs was successful, I'm sharing it just in case.
logfs.zip

Apparently, 7a3a8e5cb9d5bf67 is the signature.
image

LogFS Header (https://android.googlesource.com/kernel/msm/+/android-msm-marlin-3.18-nougat-dr1/fs/logfs/logfs_abi.h)

/**
 * struct logfs_disk_super - on-medium superblock
 *
 * @ds_magic:			magic number, must equal LOGFS_MAGIC

struct logfs_disk_super {
	struct logfs_segment_header ds_sh;
	__be64	ds_magic;
/**
 * struct logfs_segment_header - per-segment header in the ostore
 *
 * @crc:			crc32 of header (there is no data)
 * @pad:			unused, must be 0
 * @type:			segment type, see above
 * @level:			GC level for all objects in this segment
 * @segno:			segment number
 * @ec:				erase count for this segment
 * @gec:			global erase count at time of writing
 */

struct logfs_segment_header {
	__be32	crc;
	__be16	pad;
	__u8	type;
	__u8	level;
	__be32	segno;
	__be32	ec;
	__be64	gec;
};
#define LOGFS_MAGIC		0x7a3a8e5cb9d5bf67ull /* =ds_magic */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants