Non-bindable mount in a shared mount tree

Information

  • Patent Application
  • 20070198540
  • Publication Number
    20070198540
  • Date Filed
    February 01, 2006
    18 years ago
  • Date Published
    August 23, 2007
    16 years ago
Abstract
A system and method are provided for mitigating propagation of select mounts in a shared mount tree. One or more mounts in the mount tree may be designated as non-bindable. Each non-bindable mount cannot be mirrored to a mount point through a mirror operation of a mount subtree in which the non-bindable mount resides. Similarly, each non-bindable mount prevents a submount residing on the non-bindable mount to be mirrored. However, the non-bindable mount and it's submounts may be mirrored when the entire mount tree is mirrored and attached to a mount point that resides in a no mount tree that acts as a pivot for a new mount tree created through a mirror operation. A mirror of the non-bindable mount maintains the properties of the non-bindable mount.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a block diagram of a prior art mount tree with a private mount.



FIG. 2 is a block diagram of the prior art mount tree of FIG. 1 replicated.



FIG. 3 is a block diagram of the prior art mount tree of FIG. 2 replicated.



FIG. 4 is a block diagram of the prior art mount tree of FIG. 3 replicated.



FIG. 5 is a block diagram of a prior art mount tree with all mounts in the tree designated as shared.



FIG. 6 is a block diagram of the prior art mount tree of FIG. 5 replicated.



FIG. 7 is a block diagram of the prior art mount tree of FIG. 6 replicated.



FIG. 8 is a flow chart for replicating a mount tree with a non-bindable mount according to the preferred embodiment of this invention, and is suggested for printing on the first page of the issued patent.



FIG. 9 is a block diagram of a mount tree with a non-bindable mount.



FIG. 10 is a block diagram of a first view of a mount sub-tree from FIG. 9.



FIG. 11 is a block diagram of the mount sub-tree of FIG. 9 mirrored multiple times.



FIG. 12 is a block diagram of a mount tree with a non-bindable mount and a self contained mount point.



FIG. 13 is a block diagram of a mount tree with a non-bindable mount mirrored to a self contained mount point.


Claims
  • 1. A method for replicating a mount tree comprising: creating a mount tree with at least one filesystem mounted in a root directory marked as shared; andmounting at least one filesystem to a select directory in communication with said root directory and marking said mount as non-bindable, wherein said non-bindable mount includes semantics comprising: disallowing said marked non-bindable mount to be mirrored through a mirror operation of a mount subtree in which said non-bindable mount resides;disallowing submounts residing on said marked non-bindable mount to be mirrored through a mirror operation of a mount subtree in which said non-bindable mount resides; andallowing said non-bindable mount and any submounts attached to said non-bindable mount to be mirrored when said mount tree is mirrored in its entirety and attached to a self contained mount point that functions as a pivot for a new mount tree, wherein said mirrored non-bindable mount creates a new non-bindable mount.
  • 2. The method of claim 1, wherein said self contained mount point is a mount point that resides in a no mount tree.
  • 3. The method of claim 1, further comprising creating an exact mirror of said mount tree under a specified location in said mount tree while preserving said semantic of said non-bindable mount in said tree.
  • 4. The method of claim 3,wherein the step of creating an exact mirror of said mount tree includes creating said non-bindable mount at a specified location, and for each mirror of said mount tree creating: a mount point within said non-bindable mount, creating a mirror of said mount tree, and mounting said mirror on said mount point within said non-bindable mount.
  • 5. The method of claim 4, further comprising creating multiple views of a file system represented by said mount tree by mapping each mirrored mount tree to a view of said file system.
  • 6. A mount tree comprising: at least one filesystem mounted in a root directory and said mount being marked shared; andat least one filesystem mounted to a select directory in communication with the root directory and marked as non-bindable, wherein said non-bindable mount having semantics comprising: said marked non-bindable mount being disallowed to be mirrored through a mirror operation of a mount subtree in which said non-bindable mount resides;submounts residing on said marked mount being disallowed to be mirrored through a mirror operation of a mount subtree in which said non-bindable mount resides; andsaid non-bindable mount and any submounts attached to said non-bindable mount being allowed to be mirrored when said mount tree is mirrored in its entirety and attached to a self contained mount point that functions as a pivot for a new mount tree, wherein said mirrored non-bindable mount creates a new non-bindable mount.
  • 7. The mount tree of claim 6, wherein said self contained mount point is a mount point that resides in a no mount tree.
  • 8. The mount tree of claim 6, further comprising an exact mirror of said mount tree adapted to be created under a specified location in said mount tree while said property of said non-bindable mount in said tree are preserved.
  • 9. The mount tree of claim 8, wherein creation of the exact mirror of said mount tree with said non-bindable mount created at a specified location, and for each mirror of said mount tree creates: a mount point within said non-bindable mount, a mirror of said mount tree, and a mount of said mirror on said mount point within said non-bindable mount.
  • 10. The mount tree of claim 9, further comprising a manager adapted to create multiple views of a filesystem represented by said mount tree by a map of each mirrored mount tree to a view of said filesystem.
  • 11. An article comprising: a computer readable medium;means in the medium for creating a mount tree with at least one filesystem mounted in a root directory marked as shared; andmeans in the medium for mounting at least one filesystem to a select directory in communication with the root directory and marking said mount as non-bindable, wherein said non-bindable mount includes semantics comprising: disallowing said marked non-bindable mount to be mirrored through a mirror operation of a mount subtree in which said non-bindable mount resides;disallowing submounts residing on said marked non-bindable mount to be mirrored through a mirror operation of a mount subtree in which said non-bindable mount resides; andallowing said non-bindable mount and any submounts attached to said non-bindable mount to be mirrored when said mount tree is mirrored in its entirety and attached to a self contained mount point that functions as a pivot for a new mount tree, wherein said mirrored non-bindable mount creates a new non-bindable mount.
  • 12. The article of claim 11, wherein said self contained mount point is a mount point that resides in a no mount tree.
  • 13. The article of claim 11, further comprising means in the medium for creating an exact mirror of said mount tree under a specified location in said mount tree while preserving said semantics of said non-bindable mount in said tree.
  • 14. The article of claim 13,wherein the means for of creating an exact mirror of said mount tree includes creating said non-bindable mount at a specified location, and for each mirror of said mount tree creating: a mount point within said non-bindable mount, creating a mirror of said mount tree, and mounting said mirror on said mount point within said non-bindable mount.
  • 15. The article of claim 14, further comprising means in the medium for creating multiple views of a filesystem represented by said mount tree by mapping each mirrored mount tree to a view of said filesystem.