Whats missing in mkfs?
The TODO list has an item about finishing mkfs.
It looks like mkfs -t ocfs2 works fine. Is there
something specific that is missing
--rusty
During the first mount we create the systemfiles. Ideally that should be done during make. As we do this is on the first mount, we expect node 0 to be the first one to mount the volume and all other nodes are locked out till the creation is not completed.
Follow code in mount where volhdr->internal_off and volhdr->root_off is set to 0. When systemfiles/rootdirnode are created, these values are > 0.
Quoted 11 lines · Rusty Lynch
The TODO list has an item about finishing mkfs.
It looks like mkfs -t ocfs2 works fine. Is there
something specific that is missing--rusty_______________________________________________
Ocfs2-devel mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/ocfs2-devel
There's a couple of things:
We need to create and format the journal files. They should be 8 megs in size, and default to just creating journals for nodes 1-4. Basically what mkfs for an ext3 filesystem does. Also, the local alloc bitmap structures need to be created as well (one for each node). If you look at the calls to ocfs_journal_init (the exend_system_file call there) and ocfs_journal_create and ocfs_create_new_local_alloc in ocfs_check_volume, you'll see what i mean. Also, ocfs does a ton of other things in terms of initializing system files to the filesystem on "1st mount" which really should be moved into the format utility. Check out ocfs_create_root_dir_node for that.
Essentially, we're doing a *ton* of stuff in kernel space, which really should be in userspace. If you're interested in tackling this, I'd be more than happy to coordinate :)
--Mark
Quoted 5 lines · Rusty Lynch
The TODO list has an item about finishing mkfs.
It looks like mkfs -t ocfs2 works fine. Is there
something specific that is missing--rusty
--
Mark Fasheh
Software Developer, Oracle Corp
[email protected]