From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,a90342090af6a45b X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-08-02 05:52:01 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!harris Subject: Re: Clone File Syetm From: Bob Harris Newsgroups: comp.unix.tru64 Posted-And-Mailed: yes Message-ID: <020820010852018548%harris@zk3.dec.com> References: <3b67b424$0$12225$4d4efb8e@news.be.uu.net> <010820010937029107%harris@zk3.dec.com> <3b680f61$0$7117$4d4efb8e@news.be.uu.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 8bit User-Agent: YA-NewsWatcher/5.0.1 Date: Thu, 02 Aug 2001 08:52:01 -0400 NNTP-Posting-Host: 16.140.32.194 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 996756719 16.140.32.194 (Thu, 02 Aug 2001 05:51:59 PDT) NNTP-Posting-Date: Thu, 02 Aug 2001 05:51:59 PDT Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:4046 [[ 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 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" 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> 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