github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/utils/archive/const.go (about)

     1  // Copyright © 2021 Alibaba Group Holding Ltd.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // This file content is extracted from "github.com/docker/docker/pkg/system"
    16  
    17  package archive
    18  
    19  const (
    20  	// WhiteoutPrefix means this file is a whiteout(deleted at the merge layer)
    21  	WhiteoutPrefix = ".wh."
    22  
    23  	// WhiteoutMetaPrefix prefix means whiteout has a special meaning and is not
    24  	// for removing an actual file. Normally these files are excluded from exported
    25  	// archives.
    26  	WhiteoutMetaPrefix = WhiteoutPrefix + WhiteoutPrefix
    27  
    28  	// WhiteoutLinkDir is a directory AUFS uses for storing hardlink links to other
    29  	// layers. Normally these should not go into exported archives and all changed
    30  	// hardlinks should be copied to the top layer.
    31  	WhiteoutLinkDir = WhiteoutMetaPrefix + "plnk"
    32  
    33  	// WhiteoutOpaqueDir file means directory has been made opaque - meaning
    34  	// readdir calls to this directory do not follow to lower layers.
    35  	WhiteoutOpaqueDir = WhiteoutMetaPrefix + ".opq"
    36  )