/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/xattr/ |
H A D | xattr_011_pos.ksh | 41 # Basic applications work with xattrs: cpio cp find mv pax tar 55 log_assert "Basic applications work with xattrs: cpio cp find mv pax tar" 64 # For the archive applications below (tar, cpio, pax) 177 log_note "Checking tar" 179 log_must touch $TESTDIR/tar.$$ 180 create_xattr $TESTDIR/tar.$$ passwd /etc/passwd 184 log_must tar cf noxattr.tar tar.$$ 185 log_must tar c@f xattr.tar tar.$$ 186 log_must rm $TESTDIR/tar.$$ 189 log_must tar xf xattr.tar [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_tar.c | 51 * Layout of POSIX 'ustar' tar header. 73 * Structure of GNU tar header 119 struct tar { struct 167 static int gnu_add_sparse_entry(struct archive_read *, struct tar *, argument 170 static void gnu_clear_sparse_list(struct tar *); 171 static int gnu_sparse_old_read(struct archive_read *, struct tar *, 173 static int gnu_sparse_old_parse(struct archive_read *, struct tar *, 175 static int gnu_sparse_01_parse(struct archive_read *, struct tar *, 177 static int64_t gnu_sparse_10_read(struct archive_read *, struct tar *, 179 static int header_Solaris_ACL(struct archive_read *, struct tar *, [all …]
|
H A D | tar.5 | 27 .Dt TAR 5 30 .Nm tar 52 programs that read or write tar files always read or write a fixed 70 The original tar archive format has been extended many times to 73 This section describes the variant implemented by the tar command 76 which seems to be the earliest widely-used version of the tar program. 99 Early tar implementations only stored regular files (including 112 In particular, this field was ignored by early tar implementations 127 Note that many early implementations of tar used signed arithmetic 148 Early tar implementation [all...] |
/freebsd/tests/sys/fs/tarfs/ |
H A D | tarfs_test.sh | 34 tar() { function 66 local tarball="${PWD}/tarfs_test.tar.zst" 88 atf_set "descr" "Basic function test using GNU tar" 110 tar -cf tarfs_notdir.tar d 114 tar -rf tarfs_notdir.tar d/f 116 mount -rt tarfs tarfs_notdir.tar "${mnt}" 124 atf_set "descr" "Regression test for PR 269519 and 269561 using GNU tar" 146 tar -cf tarfs_notdir.tar d 150 tar -rf tarfs_notdir.tar d/./f 152 mount -rt tarfs tarfs_notdir.tar "${mnt}" [all …]
|
/freebsd/usr.bin/tar/tests/ |
H A D | Makefile | 14 CFLAGS+= -I${_LIBARCHIVEDIR}/tar -I${_LIBARCHIVEDIR}/tar/test 25 .PATH: ${_LIBARCHIVEDIR}/tar/test 106 @(cd ${_LIBARCHIVEDIR}/tar/test && \ 112 ${PACKAGE}FILES+= test_extract.tar.Z.uu 113 ${PACKAGE}FILES+= test_extract.tar.bz2.uu 114 ${PACKAGE}FILES+= test_extract.tar.grz.uu 115 ${PACKAGE}FILES+= test_extract.tar.gz.uu 116 ${PACKAGE}FILES+= test_extract.tar.lrz.uu 117 ${PACKAGE}FILES+= test_extract.tar.lz.uu 118 ${PACKAGE}FILES+= test_extract.tar.lz4.uu [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/xattr/ |
H A D | xattr_011_pos.ksh | 36 # Basic applications work with xattrs: cpio cp find mv pax tar 59 log_assert "Basic applications work with xattrs: cpio cp find mv pax tar" 70 # For the archive applications below (tar, cpio, pax) 173 log_note "Checking tar" 174 log_must $TOUCH $TESTDIR/tar.${TESTCASE_ID} 175 create_xattr $TESTDIR/tar.${TESTCASE_ID} passwd /etc/passwd 176 log_must $TAR cf $TESTDIR/noxattr.tar $TESTDIR/tar.${TESTCASE_ID} 177 log_must $TAR c@f $TESTDIR/xattr.tar $TESTDIR/tar.${TESTCASE_ID} 178 log_must $RM $TESTDIR/tar.${TESTCASE_ID} 181 log_must $TAR xf $TESTDIR/xattr.tar [all …]
|
/freebsd/contrib/libarchive/tar/test/ |
HD | test_list_item.tar.uu | 1 begin 644 test_list_item.tar 143 tar -cf test_list_item.tar \ 148 tar --append -f test_list_item.tar \ 152 tar --append -f test_list_item.tar \ 157 tar --append -f test_list_item.tar \ 162 uuencode -o test_list_item.tar.uu test_list_item.tar test_list_item.tar 165 cat ../"$0" >> test_list_item.tar.uu 166 mv test_list_item.tar.uu ../
|
H A D | test_option_s.c | 25 /* Does tar support -s option ? */ in DEFINE_TEST() 39 systemf("%s -cf test1_1.tar -s /foo/bar/ in/d1/foo", testprog); in DEFINE_TEST() 40 systemf("%s -xf test1_1.tar -C test1", testprog); in DEFINE_TEST() 42 systemf("%s -cf test1_2.tar -s /d1/d2/ in/d1/foo", testprog); in DEFINE_TEST() 43 systemf("%s -xf test1_2.tar -C test1", testprog); in DEFINE_TEST() 50 systemf("%s -cf test2.tar in/d1/foo", testprog); in DEFINE_TEST() 51 systemf("%s -xf test2.tar -s /foo/bar/ -C test2", testprog); in DEFINE_TEST() 57 systemf("%s -cf test3.tar -s ,in/d1/foo,, in/d1/foo", testprog); in DEFINE_TEST() 58 systemf("%s -tvf test3.tar > in.lst", testprog); in DEFINE_TEST() 65 systemf("%s -cf test4.tar in/d1/foo in/d1/bar", in DEFINE_TEST() [all …]
|
H A D | test_option_b.c | 29 assertEqualInt(0, systemf("%s -cf archive1.tar file1 >test1.out 2>test1.err", testprog_ustar)); in DEFINE_TEST() 31 assertFileSize("archive1.tar", 2048); in DEFINE_TEST() 39 assertEqualInt(0, systemf("%s -cf - file1 2>test2.err | cat >archive2.tar ", testprog_ustar)); in DEFINE_TEST() 41 assertFileSize("archive2.tar", 10240); in DEFINE_TEST() 44 …assertEqualInt(0, systemf("%s -cf - -b 20 file1 2>test3.err | cat >archive3.tar ", testprog_ustar)… in DEFINE_TEST() 45 assertFileSize("archive3.tar", 10240); in DEFINE_TEST() 48 …assertEqualInt(0, systemf("%s -cf - -b 10 file1 2>test4.err | cat >archive4.tar ", testprog_ustar)… in DEFINE_TEST() 49 assertFileSize("archive4.tar", 5120); in DEFINE_TEST() 52 assertEqualInt(0, systemf("%s -cf - -b 1 file1 2>test5.err | cat >archive5.tar ", testprog_ustar)); in DEFINE_TEST() 53 assertFileSize("archive5.tar", 2048); in DEFINE_TEST() [all …]
|
H A D | test_option_ignore_zeros.c | 19 assertEqualInt(0, systemf("%s cf a.tar -C in a", testprog)); in make_files() 20 assertEqualInt(0, systemf("%s cf b.tar -C in b", testprog)); in make_files() 22 ret = systemf("cat a.tar b.tar > ab-cat.tar"); in make_files() 38 "%s cf ab-norm.tar -C in a b > norm-c.out 2> norm-c.err", in DEFINE_TEST() 43 "%s tf ab-norm.tar > norm-t.out 2> norm-t.err", in DEFINE_TEST() 49 "%s tf ab-cat.tar --ignore-zeros > test.out 2> test.err", in DEFINE_TEST() 62 "%s xf ab-cat.tar --ignore-zeros -C out > test.out 2> test.err", in DEFINE_TEST() 84 "%s cf abc.tar --ignore-zeros @ab-cat.tar -C in c " in DEFINE_TEST() 91 "%s xf abc.tar -C out > test-x.out 2> test-x.err", in DEFINE_TEST() 109 "%s %sf ab-cat.tar --ignore-zeros -C in c " in test_option_ignore_zeros_mode_ru() [all …]
|
H A D | test_option_C_upper.c | 25 assertEqualInt(0, systemf("%s -cf archive.tar -C ../d1 file1 -C ../d2 file2", testprog)); in DEFINE_TEST() 27 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 40 assertEqualInt(0, systemf("%s -cf archive.tar -C .. -C d1 file1 -C .. -C d2 file2", testprog)); in DEFINE_TEST() 42 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 54 r = systemf("%s -cf archive.tar -C ../XXX file1 -C ../d2 file2 2>write.err", testprog); in DEFINE_TEST() 58 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 71 systemf("%s -cf archive.tar -C %s/d1 file1", in DEFINE_TEST() 74 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 86 systemf("%s -cf archive.tar -C XXX -C %s/d1 file1", in DEFINE_TEST() 89 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() [all …]
|
/freebsd/lib/libarchive/tests/ |
H A D | Makefile | 372 ${PACKAGE}FILES+= test_acl_pax_posix1e.tar.uu 373 ${PACKAGE}FILES+= test_acl_pax_nfs4.tar.uu 378 ${PACKAGE}FILES+= test_compat_gtar_1.tar.uu 379 ${PACKAGE}FILES+= test_compat_gtar_2.tar.uu 382 ${PACKAGE}FILES+= test_compat_lz4_1.tar.lz4.uu 383 ${PACKAGE}FILES+= test_compat_lz4_2.tar.lz4.uu 384 ${PACKAGE}FILES+= test_compat_lz4_3.tar.lz4.uu 385 ${PACKAGE}FILES+= test_compat_lz4_B4.tar.lz4.uu 386 ${PACKAGE}FILES+= test_compat_lz4_B4BD.tar.lz4.uu 387 ${PACKAGE}FILES+= test_compat_lz4_B4BDBX.tar.lz4.uu [all …]
|
/freebsd/crypto/krb5/doc/pdf/ |
H A D | GMakefile | 45 tar: all-$(FMT) 48 tar cf $(ARCHIVEPREFIX)docs-$(FMT).tar $(ARCHIVEPREFIX)docs-$(FMT) 51 gz: tar 52 gzip -9 < $(ARCHIVEPREFIX)docs-$(FMT).tar > $(ARCHIVEPREFIX)docs-$(FMT).tar.gz 54 bz2: tar 55 bzip2 -9 -k $(ARCHIVEPREFIX)docs-$(FMT).tar 57 xz: tar 58 xz -9 -k $(ARCHIVEPREFIX)docs-$(FMT).tar 61 …rm -f *.log *.ind *.aux *.toc *.syn *.idx *.out *.ilg *.pla *.ps *.tar *.tar.gz *.tar.bz2 *.tar.xz… 63 .PHONY: all all-pdf all-dvi all-ps clean zip tar gz bz2 xz
|
/freebsd/contrib/file/src/ |
H A D | is_tar.c | 29 * is_tar() -- figure out whether file is a tar archive. 31 * Stolen (by the author!) from the file_public domain tar program: 49 #include "tar.h" 57 "tar archive", /* found in ../magic/Magdir/archive */ 58 "POSIX tar archive", 59 "POSIX tar archive (GNU)", /* */ 68 * Do the tar test first, because if the first file in the tar in file_is_tar() 71 int tar; in file_is_tar() local 77 tar = is_tar(buf, nbytes); in file_is_tar() 78 if (tar < 1 || tar > 3) in file_is_tar() [all …]
|
/freebsd/contrib/netbsd-tests/bin/tar/ |
H A D | t_tar.sh | 37 # store both foo and bar into file1.tar 38 atf_check -s eq:0 -o empty -e empty tar -cf file1.tar foo bar 40 # store foo into file2.tar, then append bar to file2.tar 41 atf_check -s eq:0 -o empty -e empty tar -cf file2.tar foo 42 atf_check -s eq:0 -o empty -e empty tar -rf file2.tar bar 44 # ensure that file1.tar and file2.tar are equal 45 atf_check -s eq:0 -o empty -e empty cmp file1.tar file2.tar
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/migration/ |
H A D | migration_002_pos.ksh | 38 # Migrating test file from ZFS fs to platform native fs using tar. 42 # 2. Tar up test file and place on a ZFS filesystem 43 # 3. Extract tar contents to a platform native file system 52 rm -rf $TESTDIR/tar$$.tar $NONZFS_TESTDIR/$BNAME 55 log_assert "Migrating test file from ZFS fs to $NEWFS_DEFAULT_FS fs using tar" 59 log_must prepare $DNAME "tar cf $TESTDIR/tar$$.tar $BNAME" 60 log_must migrate $NONZFS_TESTDIR $SUMA $SUMB "tar xf $TESTDIR/tar$$.tar"
|
H A D | migration_003_pos.ksh | 38 # Migrating test file from platform native fs to ZFS fs using tar. 42 # 2. Tar up test file and place on a platform native filesystem 43 # 3. Extract tar contents to a ZFS file system 52 rm -rf $NONZFS_TESTDIR/tar$$.tar $TESTDIR/$BNAME 55 log_assert "Migrating test file from $NEWFS_DEFAULT_FS fs to ZFS fs using tar" 59 log_must prepare $DNAME "tar cf $NONZFS_TESTDIR/tar$$.tar $BNAME" 60 log_must migrate $TESTDIR $SUMA $SUMB "tar xvf $NONZFS_TESTDIR/tar$$.tar"
|
H A D | migration_001_pos.ksh | 38 # Migrating test file from ZFS fs to ZFS fs using tar. 42 # 2. Tar up test file and place on a ZFS filesystem 43 # 3. Extract tar contents to a ZFS file system 52 rm -rf $TESTDIR/tar$$.tar $TESTDIR/$BNAME 55 log_assert "Migrating test file from ZFS fs to ZFS fs using tar" 59 log_must prepare $DNAME "tar cf $TESTDIR/tar$$.tar $BNAME" 60 log_must migrate $TESTDIR $SUMA $SUMB "tar xf $TESTDIR/tar$$.tar"
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_pax_xattr_header.c | 48 "test_pax_xattr_header_all.tar", in DEFINE_TEST() 49 "test_pax_xattr_header_libarchive.tar", in DEFINE_TEST() 50 "test_pax_xattr_header_schily.tar", in DEFINE_TEST() 63 archive_write_open_filename(a, "test1.tar")); in DEFINE_TEST() 72 assertEqualFile("test1.tar","test_pax_xattr_header_all.tar"); in DEFINE_TEST() 81 archive_write_open_filename(a, "test2.tar")); in DEFINE_TEST() 91 assertEqualFile("test2.tar","test_pax_xattr_header_schily.tar"); in DEFINE_TEST() 100 archive_write_open_filename(a, "test3.tar")); in DEFINE_TEST() [all...] |
/freebsd/tests/sys/cddl/zfs/tests/acl/trivial/ |
H A D | zfs_acl_tar_001_pos.ksh | 36 # Verifies that tar will include file attribute when @ flag is present. 41 # 3. tar all the files to directory B. 42 # 4. Then tar the tar file to directory C. 58 log_assert "Verifies that tar will include file attribute when @ flag is " \ 72 # then tar all the files to $TMP_DIR/files.tar. 76 tarout=$TMP_DIR/files.tar 79 log_must usr_exec $TAR cpf@ $tarout * 82 # Enter into test directory and tar $TMP_DIR/files.tar to current 89 log_must usr_exec $TAR xpf@ $tarout 97 log_pass "Verify tar with @ passed."
|
H A D | zfs_acl_tar_002_neg.ksh | 36 # Verifies that tar will not include files attribute when @ flag is not 42 # 3. tar all the files to directory B. 43 # 4. Then tar the tar file to directory C. 59 log_assert "Verifies that tar will not include files attribute when @ flag is "\ 77 # then tar all the files to $TMP_DIR/files.tar. 79 tarout=$TMP_DIR/files.tar 82 log_must usr_exec $TAR cpf $tarout * 85 # Enter into test directory and tar $TMP_DIR/files.tar to current 91 log_must usr_exec $TAR xpf $tarout 113 log_pass "Verify tar without @ passed."
|
/freebsd/tests/sys/cddl/zfs/tests/migration/ |
H A D | migration_003_pos.ksh | 37 # Migrating test file from UFS fs to ZFS fs using tar. 41 # 2. Tar up test file and place on a UFS filesystem 42 # 3. Extract tar contents to a ZFS file system 60 $RM -rf $NONZFS_TESTDIR/tar${TESTCASE_ID}.tar 64 log_assert "Migrating test file from UFS fs to ZFS fs using tar" 68 prepare $DNAME "$TAR cf $NONZFS_TESTDIR/tar${TESTCASE_ID}.tar $BNAME" 71 migrate $TESTDIR $SUMA $SUMB "$TAR xvf $NONZFS_TESTDIR/tar${TESTCASE_ID}.tar"
|
H A D | migration_001_pos.ksh | 37 # Migrating test file from ZFS fs to ZFS fs using tar. 41 # 2. Tar up test file and place on a ZFS filesystem 42 # 3. Extract tar contents to a ZFS file system 60 $RM -rf $TESTDIR/tar${TESTCASE_ID}.tar 64 log_assert "Migrating test file from ZFS fs to ZFS fs using tar" 68 prepare $DNAME "$TAR cf $TESTDIR/tar${TESTCASE_ID}.tar $BNAME" 71 migrate $TESTDIR $SUMA $SUMB "$TAR xf $TESTDIR/tar${TESTCASE_ID}.tar"
|
H A D | migration_002_pos.ksh | 37 # Migrating test file from ZFS fs to UFS fs using tar. 41 # 2. Tar up test file and place on a ZFS filesystem 42 # 3. Extract tar contents to a UFS file system 60 $RM -rf $TESTDIR/tar${TESTCASE_ID}.tar 64 log_assert "Migrating test file from ZFS fs to UFS fs using tar" 68 prepare $DNAME "$TAR cf $TESTDIR/tar${TESTCASE_ID}.tar $BNAME" 71 migrate $NONZFS_TESTDIR $SUMA $SUMB "$TAR xf $TESTDIR/tar${TESTCASE_ID}.tar"
|
/freebsd/contrib/netbsd-tests/bin/pax/ |
H A D | t_pax.sh | 37 # store both foo and bar into file1.tar 39 pax -w -b 512 -x ustar -f file1.tar foo bar 41 # store foo into file2.tar, then append bar to file2.tar 43 pax -w -b 512 -x ustar -f file2.tar foo 45 pax -w -b 512 -x ustar -f file2.tar -a bar 47 # ensure that file1.tar and file2.tar are equal 48 atf_check -s eq:0 -o empty -e empty cmp file1.tar file2.tar
|