Lines Matching refs:longname
455 static int putfile(char *longname, char *shortname, char *parent,
461 static void splitfile(char *longname, int ifd, char *name,
506 static int chk_path_build(char *name, char *longname, char *linkname,
514 static int getstat(int dirfd, char *longname, char *shortname,
519 static int put_link(char *name, char *longname, char *component,
521 static int put_extra_attributes(char *longname, char *shortname,
523 static int put_xattr_hdr(char *longname, char *shortname, char *longattrname,
1818 putfile(char *longname, char *shortname, char *parent, attr_data_t *attrinfo, in putfile() argument
1874 (filetype == XATTR_FILE) ? longname : parent); in putfile()
1881 longname); in putfile()
1885 if (getstat(dirfd, longname, shortname, attrparent)) in putfile()
1898 "exceeds MAXSYMLINKS\n"), longname); in putfile()
1916 longname); in putfile()
1939 longname); in putfile()
1946 if (tfile != NULL && checkupdate(longname) == 0) { in putfile()
1949 if (checkw('r', longname) == 0) { in putfile()
1954 checkf(longname, (stbuf.st_mode & S_IFMT) == S_IFDIR, Fflag) == 0) in putfile()
1958 if (is_in_table(exclude_tbl, longname)) { in putfile()
1961 "a %s excluded\n"), longname); in putfile()
1973 if ((((split = (int)strlen(longname)) > MAXNAM) && (Eflag == 0)) || in putfile()
1976 "tar: %s: file name too long\n"), longname); in putfile()
2001 (void) strncpy(&goodbuf[0], longname, min(split, PRESIZ + 1)); in putfile()
2020 lastslash = strrchr(longname, '/'); in putfile()
2025 Xtarhdr.x_path = longname; in putfile()
2039 longname : lastslash + 1, NAMSIZ); in putfile()
2043 "\n"), longname, PRESIZ); in putfile()
2050 (void) strncpy(&junkbuf[0], longname + j + 1, in putfile()
2051 strlen(longname + j + 1)); in putfile()
2055 name = longname; in putfile()
2074 while ((*cp++ = longname[i++])) in putfile()
2121 if (put_extra_attributes(longname, shortname, in putfile()
2151 longname, longattrname); in putfile()
2154 (void) fprintf(vfile, "a %s/ ", longname); in putfile()
2188 "can't open directory %s"), longname); in putfile()
2268 longname); in putfile()
2284 "can't read symbolic link %s"), longname); in putfile()
2292 longname, filetmp); in putfile()
2311 vperror(0, gettext("unable to open %s%s%s%s"), longname, in putfile()
2322 if (put_link(name, longname, shortname, longattrname, in putfile()
2336 splitfile(longname, infile, in putfile()
2344 dlog("putfile: %s wants %" FMT_blkcnt_t " blocks\n", longname, in putfile()
2354 (void) fprintf(vfile, "a %s%s%s%s ", longname, in putfile()
2369 if (put_extra_attributes(longname, shortname, longattrname, in putfile()
2402 vperror(0, gettext("Read error on %s"), longname); in putfile()
2405 "tar: %s: file changed size\n"), longname); in putfile()
2419 if (put_link(name, longname, shortname, longattrname, in putfile()
2429 splitfile(longname, infile, name, in putfile()
2437 dlog("putfile: %s wants %" FMT_blkcnt_t " blocks\n", longname, in putfile()
2444 FMT_blkcnt_t "K\n "), longname, K(blocks)); in putfile()
2448 longname, blocks); in putfile()
2455 if (put_extra_attributes(longname, shortname, longattrname, in putfile()
2467 if (put_link(name, longname, shortname, longattrname, in putfile()
2477 splitfile(longname, infile, name, in putfile()
2484 dlog("putfile: %s wants %" FMT_blkcnt_t " blocks\n", longname, in putfile()
2491 FMT_blkcnt_t "K\n"), longname, K(blocks)); in putfile()
2494 FMT_blkcnt_t " tape blocks\n"), longname, in putfile()
2502 if (put_extra_attributes(longname, shortname, longattrname, in putfile()
2514 if (put_link(name, longname, shortname, longattrname, in putfile()
2524 splitfile(longname, infile, in putfile()
2531 dlog("putfile: %s wants %" FMT_blkcnt_t " blocks\n", longname, in putfile()
2538 (void) fprintf(vfile, "a %s ", longname); in putfile()
2550 if (put_extra_attributes(longname, shortname, longattrname, in putfile()
2561 "tar: %s is not a file. Not dumped\n"), longname); in putfile()
2587 splitfile(char *longname, int ifd, char *name, char *prefix, int filetype) in splitfile() argument
2618 "tar: %s not dumped\n"), longname, longname); in splitfile()
2646 longname, extents, K(tapepos)); in splitfile()
2669 longname, K(blocks), i, extents); in splitfile()
2676 "tar: %s: file changed size\n"), longname); in splitfile()
2678 "tar: aborting split file %s\n"), longname); in splitfile()
2686 "extents)\n"), longname, K(TBLOCKS(stbuf.st_size)), in splitfile()
4729 checkf(char *longname, int is_dir, int howmuch) in checkf() argument
4747 if (strlcpy(fullname, longname, sizeof (fullname)) >= sizeof (fullname)) in checkf()
4776 if (strlcpy(fullname, longname, sizeof (fullname)) >= sizeof (fullname)) in checkf()
5868 fill_in_attr_info(char *attr, char *longname, char *attrparent, int atparentfd, in fill_in_attr_info() argument
5882 attrparent, attr, longname); in fill_in_attr_info()
5901 attr, longname); in fill_in_attr_info()
5921 attr, longname); in fill_in_attr_info()
7206 char *longname, in chk_path_build() argument
7219 "tar: %s: linked to %s\n"), longname, linkname); in chk_path_build()
7743 getstat(int dirfd, char *longname, char *shortname, char *attrparent) in getstat() argument
7794 longname, strerror(errno)); in getstat()
7830 xattrs_put(char *longname, char *shortname, char *parent, char *attrparent) in xattrs_put() argument
7868 "unable to open file %s"), longname); in xattrs_put()
7905 longname); in xattrs_put()
7919 longname); in xattrs_put()
7931 longname); in xattrs_put()
7954 if ((fill_in_attr_info(dp->d_name, longname, attrparent, in xattrs_put()
7960 rc = putfile(longname, dp->d_name, parent, attrinfo, in xattrs_put()
7976 xattrs_put(longname, shortname, parent, dp->d_name); in xattrs_put()
7985 "of file %s"), longname); in xattrs_put()
8012 xattrs_put(char *longname, char *shortname, char *parent, char *attrppath) in xattrs_put() argument
8018 put_link(char *name, char *longname, char *component, char *longattrname, in put_link() argument
8035 if (put_xattr_hdr(longname, component, in put_link()
8043 if (chk_path_build(name, longname, lp->pathname, in put_link()
8073 longname, lp->pathname); in put_link()
8087 (void) strcpy(lp->pathname, longname); in put_link()
8091 (void) strcpy(lp->pathname, longname); in put_link()
8103 put_extra_attributes(char *longname, char *shortname, char *longattrname, in put_extra_attributes() argument
8115 if (put_xattr_hdr(longname, shortname, longattrname, prefix, in put_extra_attributes()
8137 longname, acl_strerror(error)); in put_extra_attributes()
8164 put_xattr_hdr(char *longname, char *shortname, char *longattrname, char *prefix, in put_xattr_hdr() argument
8197 prepare_xattr(&attrbuf, longname, longattrname, typeflag, lp, &attrlen); in put_xattr_hdr()