All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] Whats missing in mkfs?
@ 2004-02-17 16:21 Rusty Lynch
  2004-02-17 16:58 ` Sunil Mushran
  2004-02-17 17:09 ` [Ocfs2-devel] " Mark Fasheh
  0 siblings, 2 replies; 3+ messages in thread
From: Rusty Lynch @ 2004-02-17 16:21 UTC (permalink / raw)
  To: ocfs2-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Ocfs2-devel] Whats missing in mkfs?
  2004-02-17 16:21 [Ocfs2-devel] Whats missing in mkfs? Rusty Lynch
@ 2004-02-17 16:58 ` Sunil Mushran
  2004-02-17 17:09 ` [Ocfs2-devel] " Mark Fasheh
  1 sibling, 0 replies; 3+ messages in thread
From: Sunil Mushran @ 2004-02-17 16:58 UTC (permalink / raw)
  To: ocfs2-devel

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.

Rusty Lynch wrote:

>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
>Ocfs2-devel@oss.oracle.com
>http://oss.oracle.com/mailman/listinfo/ocfs2-devel
>  
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Ocfs2-devel] Re: Whats missing in mkfs?
  2004-02-17 16:21 [Ocfs2-devel] Whats missing in mkfs? Rusty Lynch
  2004-02-17 16:58 ` Sunil Mushran
@ 2004-02-17 17:09 ` Mark Fasheh
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Fasheh @ 2004-02-17 17:09 UTC (permalink / raw)
  To: 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

On Tue, Feb 17, 2004 at 02:20:57PM -0800, Rusty Lynch wrote:
> 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
mark.fasheh@oracle.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-17 17:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-17 16:21 [Ocfs2-devel] Whats missing in mkfs? Rusty Lynch
2004-02-17 16:58 ` Sunil Mushran
2004-02-17 17:09 ` [Ocfs2-devel] " Mark Fasheh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.