Lines Matching refs:longname

456 static int putfile(char *longname, char *shortname, char *parent,
462 static void splitfile(char *longname, int ifd, char *name,
507 static int chk_path_build(char *name, char *longname, char *linkname,
515 static int getstat(int dirfd, char *longname, char *shortname,
520 static int put_link(char *name, char *longname, char *component,
522 static int put_extra_attributes(char *longname, char *shortname,
524 static int put_xattr_hdr(char *longname, char *shortname, char *longattrname,
1820 putfile(char *longname, char *shortname, char *parent, attr_data_t *attrinfo, in putfile() argument
1876 (filetype == XATTR_FILE) ? longname : parent); in putfile()
1883 longname); in putfile()
1887 if (getstat(dirfd, longname, shortname, attrparent)) in putfile()
1900 "exceeds MAXSYMLINKS\n"), longname); in putfile()
1918 longname); in putfile()
1941 longname); in putfile()
1948 if (tfile != NULL && checkupdate(longname) == 0) { in putfile()
1951 if (checkw('r', longname) == 0) { in putfile()
1956 checkf(longname, (stbuf.st_mode & S_IFMT) == S_IFDIR, Fflag) == 0) in putfile()
1960 if (is_in_table(exclude_tbl, longname)) { in putfile()
1963 "a %s excluded\n"), longname); in putfile()
1975 if ((((split = (int)strlen(longname)) > MAXNAM) && (Eflag == 0)) || in putfile()
1978 "tar: %s: file name too long\n"), longname); in putfile()
2003 (void) strncpy(&goodbuf[0], longname, min(split, PRESIZ + 1)); in putfile()
2022 lastslash = strrchr(longname, '/'); in putfile()
2027 Xtarhdr.x_path = longname; in putfile()
2041 longname : lastslash + 1, NAMSIZ); in putfile()
2045 "\n"), longname, PRESIZ); in putfile()
2052 (void) strncpy(&junkbuf[0], longname + j + 1, in putfile()
2053 strlen(longname + j + 1)); in putfile()
2057 name = longname; in putfile()
2076 while ((*cp++ = longname[i++])) in putfile()
2123 if (put_extra_attributes(longname, shortname, in putfile()
2153 longname, longattrname); in putfile()
2156 (void) fprintf(vfile, "a %s/ ", longname); in putfile()
2190 "can't open directory %s"), longname); in putfile()
2270 longname); in putfile()
2286 "can't read symbolic link %s"), longname); in putfile()
2294 longname, filetmp); in putfile()
2313 vperror(0, gettext("unable to open %s%s%s%s"), longname, in putfile()
2324 if (put_link(name, longname, shortname, longattrname, in putfile()
2338 splitfile(longname, infile, in putfile()
2346 dlog("putfile: %s wants %" FMT_blkcnt_t " blocks\n", longname, in putfile()
2356 (void) fprintf(vfile, "a %s%s%s%s ", longname, in putfile()
2371 if (put_extra_attributes(longname, shortname, longattrname, in putfile()
2404 vperror(0, gettext("Read error on %s"), longname); in putfile()
2407 "tar: %s: file changed size\n"), longname); in putfile()
2421 if (put_link(name, longname, shortname, longattrname, in putfile()
2431 splitfile(longname, infile, name, in putfile()
2439 dlog("putfile: %s wants %" FMT_blkcnt_t " blocks\n", longname, in putfile()
2446 FMT_blkcnt_t "K\n "), longname, K(blocks)); in putfile()
2450 longname, blocks); in putfile()
2457 if (put_extra_attributes(longname, shortname, longattrname, in putfile()
2469 if (put_link(name, longname, shortname, longattrname, in putfile()
2479 splitfile(longname, infile, name, in putfile()
2486 dlog("putfile: %s wants %" FMT_blkcnt_t " blocks\n", longname, in putfile()
2493 FMT_blkcnt_t "K\n"), longname, K(blocks)); in putfile()
2496 FMT_blkcnt_t " tape blocks\n"), longname, in putfile()
2504 if (put_extra_attributes(longname, shortname, longattrname, in putfile()
2516 if (put_link(name, longname, shortname, longattrname, in putfile()
2526 splitfile(longname, infile, in putfile()
2533 dlog("putfile: %s wants %" FMT_blkcnt_t " blocks\n", longname, in putfile()
2540 (void) fprintf(vfile, "a %s ", longname); in putfile()
2552 if (put_extra_attributes(longname, shortname, longattrname, in putfile()
2563 "tar: %s is not a file. Not dumped\n"), longname); in putfile()
2589 splitfile(char *longname, int ifd, char *name, char *prefix, int filetype) in splitfile() argument
2620 "tar: %s not dumped\n"), longname, longname); in splitfile()
2648 longname, extents, K(tapepos)); in splitfile()
2671 longname, K(blocks), i, extents); in splitfile()
2678 "tar: %s: file changed size\n"), longname); in splitfile()
2680 "tar: aborting split file %s\n"), longname); in splitfile()
2688 "extents)\n"), longname, K(TBLOCKS(stbuf.st_size)), in splitfile()
4731 checkf(char *longname, int is_dir, int howmuch) in checkf() argument
4749 if (strlcpy(fullname, longname, sizeof (fullname)) >= sizeof (fullname)) in checkf()
4778 if (strlcpy(fullname, longname, sizeof (fullname)) >= sizeof (fullname)) in checkf()
5870 fill_in_attr_info(char *attr, char *longname, char *attrparent, int atparentfd, in fill_in_attr_info() argument
5884 attrparent, attr, longname); in fill_in_attr_info()
5903 attr, longname); in fill_in_attr_info()
5923 attr, longname); in fill_in_attr_info()
7208 char *longname, in chk_path_build() argument
7221 "tar: %s: linked to %s\n"), longname, linkname); in chk_path_build()
7745 getstat(int dirfd, char *longname, char *shortname, char *attrparent) in getstat() argument
7796 longname, strerror(errno)); in getstat()
7832 xattrs_put(char *longname, char *shortname, char *parent, char *attrparent) in xattrs_put() argument
7870 "unable to open file %s"), longname); in xattrs_put()
7907 longname); in xattrs_put()
7921 longname); in xattrs_put()
7933 longname); in xattrs_put()
7956 if ((fill_in_attr_info(dp->d_name, longname, attrparent, in xattrs_put()
7962 rc = putfile(longname, dp->d_name, parent, attrinfo, in xattrs_put()
7978 xattrs_put(longname, shortname, parent, dp->d_name); in xattrs_put()
7987 "of file %s"), longname); in xattrs_put()
8014 xattrs_put(char *longname, char *shortname, char *parent, char *attrppath) in xattrs_put() argument
8020 put_link(char *name, char *longname, char *component, char *longattrname, in put_link() argument
8037 if (put_xattr_hdr(longname, component, in put_link()
8045 if (chk_path_build(name, longname, lp->pathname, in put_link()
8075 longname, lp->pathname); in put_link()
8089 (void) strcpy(lp->pathname, longname); in put_link()
8093 (void) strcpy(lp->pathname, longname); in put_link()
8105 put_extra_attributes(char *longname, char *shortname, char *longattrname, in put_extra_attributes() argument
8117 if (put_xattr_hdr(longname, shortname, longattrname, prefix, in put_extra_attributes()
8139 longname, acl_strerror(error)); in put_extra_attributes()
8166 put_xattr_hdr(char *longname, char *shortname, char *longattrname, char *prefix, in put_xattr_hdr() argument
8199 prepare_xattr(&attrbuf, longname, longattrname, typeflag, lp, &attrlen); in put_xattr_hdr()