• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/netatalk-2.2.5/libatalk/vfs/

Lines Matching defs: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));
552 static int delete_ea_file(const struct ea * restrict ea, const char *eaname)
558 if ((eafile = ea_path(ea, eaname, 1)) == NULL) {
559 LOG(log_error, logtype_afpd, "delete_ea_file('%s'): ea_path error", eaname);
588 * eaname (r) name of EA or NULL
589 * macname (r) if != 0 call mtoupath on eaname
600 char *ea_path(const struct ea * restrict ea, const char * restrict eaname, int macname)
612 if (eaname) {
615 if ((eaname = mtoupath(ea->vol, eaname)) == NULL)
617 strlcat(pathbuf, eaname, MAXPATHLEN + 1);
655 char *eaname;
680 eaname = ea_path(ea, NULL, 0);
681 LOG(log_maxdebug, logtype_afpd, "ea_open: ea_path: %s", eaname);
684 if ((stat(eaname, &st)) != 0) {
706 ea->ea_fd = create_ea_header(eaname, ea);
724 LOG(log_error, logtype_afpd, "ea_open('%s'): bogus EA header file", eaname);
737 if ((ea->ea_fd = open(eaname, (ea->ea_flags & EA_RDWR) ? O_RDWR : O_RDONLY)) == -1) {
738 LOG(log_error, logtype_afpd, "ea_open('%s'): error: %s", eaname, strerror(errno));
747 LOG(log_error, logtype_afpd, "ea_open: lock error on header: %s", eaname);
754 LOG(log_error, logtype_afpd, "ea_open: lock error on header: %s", eaname);
762 LOG(log_error, logtype_afpd, "ea_open: short read on header: %s", eaname);
768 LOG(log_error, logtype_afpd, "ea_open: error unpacking header for: %s", eaname);
878 char *eaname;
896 eaname = ea_path(ea, NULL, 0);
897 if ((statat(ea->dirfd, eaname, &st)) == 0) {
898 if ((netatalk_unlinkat(ea->dirfd, eaname)) != 0) {
900 eaname, strerror(errno));
904 LOG(log_debug, logtype_afpd, "ea_close(unlink '%s'): success", eaname);
909 eaname, strerror(errno));
1376 char *eaname;
1415 eaname = (*srcea.ea_entries)[count].ea_name;
1419 if ((eapath = ea_path(&srcea, eaname, 1)) == NULL) {
1424 if ((eapath = ea_path(&dstea, eaname, 1)) == NULL) {
1433 if ((ea_addentry(&dstea, eaname, easize, 0)) == -1) {
1441 if ((ea_delentry(&srcea, eaname)) == -1) {
1444 ea_delentry(&dstea, eaname);
1474 char *eaname;
1512 eaname = (*srcea.ea_entries)[count].ea_name;
1516 if ((eapath = ea_path(&srcea, eaname, 1)) == NULL) {
1521 if ((eapath = ea_path(&dstea, eaname, 1)) == NULL) {
1530 if ((ea_addentry(&dstea, eaname, easize, 0)) == -1) {
1532 src, dst, eaname);
1559 char *eaname;
1587 if ((eaname = ea_path(&ea, (*ea.ea_entries)[count].ea_name, 1)) == NULL) {
1591 if ((ochown(eaname, uid, gid, vol_syml_opt(vol))) != 0) {
1621 const char *eaname;
1650 if ((eaname = ea_path(&ea, (*ea.ea_entries)[count].ea_name, 1)) == NULL) {
1654 if ((setfilmode(vol, eaname, ea_mode(mode), NULL)) != 0) {
1655 LOG(log_error, logtype_afpd, "ea_chmod_file('%s'): %s", eaname, strerror(errno));
1686 const char *eaname;
1726 eaname = (*ea.ea_entries)[count].ea_name;
1733 if ((eaname_safe = strrchr(eaname, '/'))) {
1734 LOG(log_warning, logtype_afpd, "ea_chmod_dir('%s'): contains a slash", eaname);
1735 eaname = eaname_safe;
1737 if ((eaname = ea_path(&ea, eaname, 1)) == NULL) {
1741 if ((setfilmode(vol, eaname, ea_mode(mode), NULL)) != 0) {
1742 LOG(log_error, logtype_afpd, "ea_chmod_dir('%s'): %s", eaname, strerror(errno));