From: Bob Harris <harris@zk3.dec.com>
Subject: Re: Clone File Syetm
Date: Thu, 02 Aug 2001 08:52:01 -0400 [thread overview]
Message-ID: <020820010852018548%harris@zk3.dec.com> (raw)
In-Reply-To: 3b680f61$0$7117$4d4efb8e@news.be.uu.net
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]
In article <3b680f61$0$7117$4d4efb8e@news.be.uu.net>, MIKA
<mika@robot.cvo> wrote:
X Thanks Bob for your explication
X but sorry may be for this stupid question
X What is Mcell mean ?
Metadata Cell. Metadata is the term we use to describe all the
information the file system needs to keep about a file so that it can
keep track of where the file is on the disk, its size, data
information, etc... Metadata is also the other file system information
such as the storage bitmap used to find free space, metadata to
maintain the domain information, metadata to maintain the individual
fileset information, metadata to maintain the frag file inforamtion,
etc...
In the UFS world the closest analog to the Mcell would be the inode,
except that in UFS a file gets only 1 inode, but the UFS inode may have
any number of indirect pages for mapping the storage of larger files.
In AdvFS the Mcell is a generic bucket where some Mcells are the
primary Mcell holding most of the same kind of information as a UFS
inode, or additional Mcells may be chained to the primary Mcell to
contain additional file information, such as storage extent maps,
property lists, clone information, etc...
Mcells do _NOT_ contain all the metadata for the file system, just
information related to individual files.
X"Bob Harris" <harris@zk3.dec.com> wrote in message
Xnews:010820010937029107%harris@zk3.dec.com...
X> [[ This message was both posted and mailed: see
X> the "To," "Cc," and "Newsgroups" headers for details. ]]
X>
X> In article <3b67b424$0$12225$4d4efb8e@news.be.uu.net>, MIKA
X> <mika@robot.cvo> wrote:
X>
X>X Hy gy,
X>X Does anoyone know how Cloning Works cause i have create
X>X a clone of a root file system, and when i do a modification
X>X on the original root file system i don't show the repercussion on
the
Xroot
X>X clone file
X>X system. Is this normal ?
X>X If yes why they say Copy on write ?
X>
X> The first time part of a file is modified, a new Mcell is allocated
for
X> the clone and this is attached to the original file's Mcell. Then
X> storage is allocated and attached to the clone's Mcell, then the
pages
X> about to be modified are copied to the newly allocated clone storage.
X>
X> Any additional modifications to the same pages, will _NOT_ be copied
to
X> the clone, since it is only the first modifications to any given page
X> that are copied to the clone.
X>
X> If the file is deleted or truncated, then all the deleted pages are
X> given to the clone Mcell.
X>
X> If a file is renamed, this is actually a modification to a directory,
X> and the directory pages are copied to its clone Mcell.
X>
X> Creating new files only affects the clone in that, creating file is a
X> directory modification.
X>
X> The domain should show less free space over time as modifications to
X> previously untouched pages are made.
X>
X> The way to see the clone is to mount the cloned fileset. This will
X> present an image of the fileset at the time the clone was snapped.
If
X> a file was not changed, then the original file will be displayed. If
X> only some of a file's pages were changed, then the unchanged pages
will
X> come from the original file, and the modified pages will come from
the
X> clone Mcell.
X>
X> Bob Harris
prev parent reply other threads:[~2001-08-02 12:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-01 7:56 Clone File Syetm MIKA
2001-08-01 13:37 ` Bob Harris
2001-08-01 14:25 ` MIKA
2001-08-02 12:52 ` Bob Harris [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox