📄 incr04.at
字号:
# Process this file with autom4te to create testsuite. -*- Autotest -*-# Test suite for GNU tar.# Copyright (C) 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.# Description: Rewritten incremental backup support (2006-05-08)# missed initialization of all struct directory members in make_directory,# which lead to random core dumps.# Reported by Sergey Myasnikov <tigra@sw.ru>. This testcase uses original# script provided by him.# References: <1148669592.5127.81.camel@tigra.sw.ru># http://lists.gnu.org/archive/html/bug-tar/2006-05/msg00038.htmlAT_SETUP([proper icontents initialization])AT_KEYWORDS([incremental incr04 icontents])m4_define([NAME_PREFIX],[a/b/one_31_chars_long_file_name_])AT_TAR_CHECK([AT_TAR_MKHIER(a/b)awk 'BEGIN { for (i=1;i<=142;i++) printf("NAME_PREFIX[%03d]\n", i); }' < /dev/null | genfile --files-from -sleep 1echo "Initial dump"tar cvf a0.tar -g a.sna amv a/b a/cecho "Incremental dump"tar cvf a1.tar -g a.sna a],[0],[Initial dumpa/a/b/m4_for(I,1,142,1,[NAME_PREFIX[]m4_if(m4_len(I),1,00,m4_len(I),2,0)I])dnlIncremental dumpa/a/c/],[tar: a/b: Directory is newtar: a/c: Directory has been renamed from `a/b'],[],[],[gnu, oldgnu, posix])AT_CLEANUP# End of incr04.at
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -