static int maybe_send_extrameta(const char *path, char cmd, const char *attribs, struct cntr *p1cntr) { if(has_extrameta(path, cmd)) { if(async_write_str(CMD_STAT, attribs) || async_write_str(metasymbol, path)) return -1; do_filecounter(p1cntr, metasymbol, 1); } return 0; }
static int maybe_send_extrameta(struct asfd *asfd, const char *path, enum cmd cmd, struct sbuf *sb, struct cntr *cntr, enum cmd symbol) { // FIX THIS: should probably initialise extrameta with the desired // conf parameters so that they do not need to be passed in all the // time. if(!has_extrameta(path, cmd, enable_acl, enable_xattr)) return 0; return usual_stuff(asfd, cntr, path, NULL, sb, symbol); }
static int maybe_send_extrameta(struct asfd *asfd, const char *path, char cmd, struct sbuf *sb, struct conf *conf, int symbol) { if(!has_extrameta(path, cmd, conf)) return 0; return usual_stuff(asfd, conf, path, NULL, sb, symbol); }