⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sparsemv.at

📁 gnu tar 源码包。 tar 软件是 Unix 系统下的一个打包软件
💻 AT
字号:
# Process this file with autom4te to create testsuite. -*- Autotest -*-# Test suite for GNU tar.# Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 3, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA# 02110-1301, USA.AT_SETUP([sparse files in MV archives])AT_KEYWORDS([sparse multiv sparsemv])# Check if sparse files are correctly split between GNU multi-volume# archives.# There are two cases: the file can be split within an empty (null) block,# or within a data block. Since null blocks are not archived, the first# case means the file is split between two consecutive data blocks.#AT_TAR_CHECK([exec <&-genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || AT_SKIP_TESTecho "Pass 1: Split between data blocks"echo "Create archive"tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1echo "Test archive"tar -t -M -f arc.1 -f arc.2 echo "Compare archive"tar -d -M -f arc.1 -f arc.2echo "Pass 2: Split within a data block"genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || AT_SKIP_TESTecho "Create archive"tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1echo "Test archive"tar -t -M -f arc.1 -f arc.2 echo "Compare archive"tar -d -M -f arc.1 -f arc.2],[0],[Pass 1: Split between data blocksCreate archiveTest archivesparsefileCompare archivePass 2: Split within a data blockCreate archiveTest archivesparsefileCompare archive],[],[],[],[gnu, oldgnu])AT_CLEANUP

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -