• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/libatalk/vfs/

Lines Matching refs:eaname

450     char *eaname;
452 if ((eaname = ea_path(ea, attruname, 1)) == NULL) {
457 LOG(log_maxdebug, logtype_afpd, "write_ea('%s')", eaname);
460 if ((stat(eaname, &st)) == 0) {
461 if ((unlink(eaname)) != 0) {
469 if ((fd = open(eaname, O_RDWR | O_CREAT | O_EXCL, 0666 & ~ea->vol->v_umask)) == -1) {
470 LOG(log_error, logtype_afpd, "write_ea: open race condition: %s", eaname);
476 LOG(log_error, logtype_afpd, "write_ea: open race condition: %s", eaname);
482 LOG(log_error, logtype_afpd, "write_ea('%s'): write: %s", eaname, strerror(errno));
550 static int delete_ea_file(const struct ea * __restrict ea, const char *eaname)
556 if ((eafile = ea_path(ea, eaname, 1)) == NULL) {
557 LOG(log_error, logtype_afpd, "delete_ea_file('%s'): ea_path error", eaname);
586 * eaname (r) name of EA or NULL
587 * macname (r) if != 0 call mtoupath on eaname
598 char *ea_path(const struct ea * __restrict ea, const char * __restrict eaname, int macname)
610 if (eaname) {
613 if ((eaname = mtoupath(ea->vol, eaname)) == NULL)
615 strlcat(pathbuf, eaname, MAXPATHLEN + 1);
653 char *eaname;
678 eaname = ea_path(ea, NULL, 0);
679 LOG(log_maxdebug, logtype_afpd, "ea_open: ea_path: %s", eaname);
682 if ((stat(eaname, &st)) != 0) {
704 ea->ea_fd = create_ea_header(eaname, ea);
722 LOG(log_error, logtype_afpd, "ea_open('%s'): bogus EA header file", eaname);
735 if ((ea->ea_fd = open(eaname, (ea->ea_flags & EA_RDWR) ? O_RDWR : O_RDONLY)) == -1) {
736 LOG(log_error, logtype_afpd, "ea_open('%s'): error: %s", eaname, strerror(errno));
745 LOG(log_error, logtype_afpd, "ea_open: lock error on header: %s", eaname);
752 LOG(log_error, logtype_afpd, "ea_open: lock error on header: %s", eaname);
760 LOG(log_error, logtype_afpd, "ea_open: short read on header: %s", eaname);
766 LOG(log_error, logtype_afpd, "ea_open: error unpacking header for: %s", eaname);
876 char *eaname;
894 eaname = ea_path(ea, NULL, 0);
895 if ((lstatat(ea->dirfd, eaname, &st)) == 0) {
896 if ((netatalk_unlinkat(ea->dirfd, eaname)) != 0) {
898 eaname, strerror(errno));
902 LOG(log_debug, logtype_afpd, "ea_close(unlink '%s'): success", eaname);
907 eaname, strerror(errno));
1374 char *eaname;
1413 eaname = (*srcea.ea_entries)[count].ea_name;
1417 if ((eapath = ea_path(&srcea, eaname, 1)) == NULL) {
1422 if ((eapath = ea_path(&dstea, eaname, 1)) == NULL) {
1431 if ((ea_addentry(&dstea, eaname, easize, 0)) == -1) {
1439 if ((ea_delentry(&srcea, eaname)) == -1) {
1442 ea_delentry(&dstea, eaname);
1472 char *eaname;
1510 eaname = (*srcea.ea_entries)[count].ea_name;
1514 if ((eapath = ea_path(&srcea, eaname, 1)) == NULL) {
1519 if ((eapath = ea_path(&dstea, eaname, 1)) == NULL) {
1528 if ((ea_addentry(&dstea, eaname, easize, 0)) == -1) {
1530 src, dst, eaname);
1557 char *eaname;
1585 if ((eaname = ea_path(&ea, (*ea.ea_entries)[count].ea_name, 1)) == NULL) {
1589 if ((lchown(eaname, uid, gid)) != 0) {
1619 const char *eaname;
1648 if ((eaname = ea_path(&ea, (*ea.ea_entries)[count].ea_name, 1)) == NULL) {
1652 if ((setfilmode(eaname, ea_mode(mode), NULL, vol->v_umask)) != 0) {
1653 LOG(log_error, logtype_afpd, "ea_chmod_file('%s'): %s", eaname, strerror(errno));
1684 const char *eaname;
1724 eaname = (*ea.ea_entries)[count].ea_name;
1731 if ((eaname_safe = strrchr(eaname, '/'))) {
1732 LOG(log_warning, logtype_afpd, "ea_chmod_dir('%s'): contains a slash", eaname);
1733 eaname = eaname_safe;
1735 if ((eaname = ea_path(&ea, eaname, 1)) == NULL) {
1739 if ((setfilmode(eaname, ea_mode(mode), NULL, vol->v_umask)) != 0) {
1740 LOG(log_error, logtype_afpd, "ea_chmod_dir('%s'): %s", eaname, strerror(errno));