Home
last modified time | relevance | path

Searched full:tar (Results 1 – 25 of 695) sorted by relevance

12345678910>>...28

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/xattr/
H A Dxattr_011_pos.ksh40 # Basic applications work with xattrs: cpio cp find mv pax tar
54 log_assert "Basic applications work with xattrs: cpio cp find mv pax tar"
63 # For the archive applications below (tar, cpio, pax)
176 log_note "Checking tar"
178 log_must touch $TESTDIR/tar.$$
179 create_xattr $TESTDIR/tar.$$ passwd /etc/passwd
183 log_must tar cf noxattr.tar tar.$$
184 log_must tar c@f xattr.tar tar.$$
185 log_must rm $TESTDIR/tar.$$
188 log_must tar xf xattr.tar
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_format_tar.c51 * Layout of POSIX 'ustar' tar header.
73 * Structure of GNU tar header
119 struct tar { struct
156 static int gnu_add_sparse_entry(struct archive_read *, struct tar *, argument
159 static void gnu_clear_sparse_list(struct tar *);
160 static int gnu_sparse_old_read(struct archive_read *, struct tar *,
162 static int gnu_sparse_old_parse(struct archive_read *, struct tar *,
164 static int gnu_sparse_01_parse(struct archive_read *, struct tar *,
166 static ssize_t gnu_sparse_10_read(struct archive_read *, struct tar *,
168 static int header_Solaris_ACL(struct archive_read *, struct tar *,
[all …]
H A Dtar.527 .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 Dtarfs_test.sh34 tar() { function
66 local tarball="${PWD}/tarfs_test.tar.zst"
88 atf_set "descr" "Basic function test using GNU tar"
108 tar -cf tarfs_notdir.tar d
112 tar -rf tarfs_notdir.tar d/f
114 mount -rt tarfs tarfs_notdir.tar "${mnt}"
122 atf_set "descr" "Regression test for PR 269519 and 269561 using GNU tar"
142 tar -cf tarfs_notdir.tar d
146 tar -rf tarfs_notdir.tar d/./f
148 mount -rt tarfs tarfs_notdir.tar "${mnt}"
[all …]
/freebsd/usr.bin/tar/tests/
H A DMakefile14 CFLAGS+= -I${_LIBARCHIVEDIR}/tar -I${_LIBARCHIVEDIR}/tar/test
25 .PATH: ${_LIBARCHIVEDIR}/tar/test
104 @(cd ${_LIBARCHIVEDIR}/tar/test && \
110 ${PACKAGE}FILES+= test_extract.tar.Z.uu
111 ${PACKAGE}FILES+= test_extract.tar.bz2.uu
112 ${PACKAGE}FILES+= test_extract.tar.grz.uu
113 ${PACKAGE}FILES+= test_extract.tar.gz.uu
114 ${PACKAGE}FILES+= test_extract.tar.lrz.uu
115 ${PACKAGE}FILES+= test_extract.tar.lz.uu
116 ${PACKAGE}FILES+= test_extract.tar.lz4.uu
[all …]
/freebsd/tests/sys/cddl/zfs/tests/xattr/
H A Dxattr_011_pos.ksh36 # 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/file/src/
H A Dis_tar.c29 * 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/lib/libarchive/tests/
H A DMakefile359 ${PACKAGE}FILES+= test_acl_pax_posix1e.tar.uu
360 ${PACKAGE}FILES+= test_acl_pax_nfs4.tar.uu
365 ${PACKAGE}FILES+= test_compat_gtar_1.tar.uu
366 ${PACKAGE}FILES+= test_compat_gtar_2.tar.uu
369 ${PACKAGE}FILES+= test_compat_lz4_1.tar.lz4.uu
370 ${PACKAGE}FILES+= test_compat_lz4_2.tar.lz4.uu
371 ${PACKAGE}FILES+= test_compat_lz4_3.tar.lz4.uu
372 ${PACKAGE}FILES+= test_compat_lz4_B4.tar.lz4.uu
373 ${PACKAGE}FILES+= test_compat_lz4_B4BD.tar.lz4.uu
374 ${PACKAGE}FILES+= test_compat_lz4_B4BDBX.tar.lz4.uu
[all …]
/freebsd/contrib/libarchive/tar/test/
H A Dtest_option_s.c25 /* 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 Dtest_option_b.c29 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 Dtest_option_ignore_zeros.c19 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()
85 "%s cf abc.tar --ignore-zeros @ab-cat.tar -C in c " in DEFINE_TEST()
92 "%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 Dtest_option_C_upper.c25 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 …]
H A Dtest_option_a.c18 /* Test1: archive it with .tar.Z suffix. */ in DEFINE_TEST()
20 systemf("%s -acf test1.tar.Z f 2>test1.err", testprog)); in DEFINE_TEST()
23 p = slurpfile(&s, "test1.tar.Z"); in DEFINE_TEST()
40 /* Test3: archive it with .tar.Z.uu suffix. */ in DEFINE_TEST()
42 systemf("%s -acf test3.tar.Z.uu f 2>test3.err", testprog)); in DEFINE_TEST()
45 p = slurpfile(&s, "test3.tar.Z.uu"); in DEFINE_TEST()
62 /* Test5: archive it with .tar.Z suffix and --uuencode option. */ in DEFINE_TEST()
64 systemf("%s -acf test5.tar.Z --uuencode f 2>test5.err", in DEFINE_TEST()
68 p = slurpfile(&s, "test5.tar.Z"); in DEFINE_TEST()
87 /* Test7: archive it with .tar.Z suffix using a long-name option. */ in DEFINE_TEST()
[all …]
/freebsd/contrib/netbsd-tests/bin/tar/
H A Dt_tar.sh37 # 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 Dmigration_001_pos.ksh37 # 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
51 rm -rf $TESTDIR/tar$$.tar $TESTDIR/$BNAME
54 log_assert "Migrating test file from ZFS fs to ZFS fs using tar"
58 log_must prepare $DNAME "tar cf $TESTDIR/tar$$.tar $BNAME"
59 log_must migrate $TESTDIR $SUMA $SUMB "tar xf $TESTDIR/tar$$.tar"
H A Dmigration_002_pos.ksh37 # Migrating test file from ZFS fs to platform native fs using tar.
41 # 2. Tar up test file and place on a ZFS filesystem
42 # 3. Extract tar contents to a platform native file system
51 rm -rf $TESTDIR/tar$$.tar $NONZFS_TESTDIR/$BNAME
54 log_assert "Migrating test file from ZFS fs to $NEWFS_DEFAULT_FS fs using tar"
58 log_must prepare $DNAME "tar cf $TESTDIR/tar$$.tar $BNAME"
59 log_must migrate $NONZFS_TESTDIR $SUMA $SUMB "tar xf $TESTDIR/tar$$.tar"
H A Dmigration_003_pos.ksh37 # Migrating test file from platform native fs to ZFS fs using tar.
41 # 2. Tar up test file and place on a platform native filesystem
42 # 3. Extract tar contents to a ZFS file system
51 rm -rf $NONZFS_TESTDIR/tar$$.tar $TESTDIR/$BNAME
54 log_assert "Migrating test file from $NEWFS_DEFAULT_FS fs to ZFS fs using tar"
58 log_must prepare $DNAME "tar cf $NONZFS_TESTDIR/tar$$.tar $BNAME"
59 log_must migrate $TESTDIR $SUMA $SUMB "tar xvf $NONZFS_TESTDIR/tar$$.tar"
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_pax_xattr_header.c48 "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 Dzfs_acl_tar_001_pos.ksh36 # 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 Dzfs_acl_tar_002_neg.ksh36 # 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 Dmigration_003_pos.ksh37 # 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 Dmigration_001_pos.ksh37 # 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 Dmigration_002_pos.ksh37 # 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 Dt_pax.sh37 # 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
/freebsd/contrib/libarchive/tar/
H A Dbsdtar.c272 * originated: SUSv2, POSIX, GNU tar, star, etc. If there's in main()
278 case 'a': /* GNU tar */ in main()
281 case OPTION_ACLS: /* GNU tar */ in main()
286 case 'B': /* GNU tar */ in main()
310 case 'C': /* GNU tar */ in main()
320 case OPTION_CHECK_LINKS: /* GNU tar */ in main()
330 case OPTION_EXCLUDE: /* GNU tar */ in main()
336 case OPTION_EXCLUDE_VCS: /* GNU tar */ in main()
350 case OPTION_FORMAT: /* GNU tar, others */ in main()
368 case OPTION_GROUP: /* GNU tar */ in main()
[all …]

12345678910>>...28