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

Lines Matching refs:vol

1057 static int remove_acl(const struct vol *vol,const char *path, int dir)
1063 if ((ret = vol->vfs->vfs_remove_acl(vol, path, dir)) != AFP_OK)
1080 static int set_acl(const struct vol *vol,
1154 if ((ret = (vol->vfs->vfs_acl(vol, name, ACE_SETACL, new_aces_count, new_aces))) != 0) {
1244 static int set_acl(const struct vol *vol,
1305 EC_ZERO_LOG_ERR(vol->vfs->vfs_acl(vol, name, ACL_TYPE_ACCESS, 0, access_acl), AFPERR_MISC);
1315 EC_ZERO_LOG_ERR(vol->vfs->vfs_acl(vol, name, ACL_TYPE_DEFAULT, 0, default_acl), AFPERR_MISC);
1333 * @param vol (r) volume
1341 static int check_acl_access(const struct vol *vol,
1375 EC_ZERO_LOG_ERR(ostat(path, &st, vol_syml_opt(vol)), AFPERR_PARAM);
1398 if (vol && dir && (requested_rights & DARWIN_ACE_DELETE)) {
1404 EC_NULL_LOG_ERR(parent = bfromcstr(vol->v_path), AFPERR_MISC);
1463 struct vol *vol;
1475 if (NULL == ( vol = getvolbyvid( vid ))) {
1482 if (NULL == ( dir = dirlookup( vol, did ))) {
1500 if (NULL == ( s_path = cname( vol, dir, &ibuf ))) {
1505 of_statdir(vol, s_path);
1511 ret = check_acl_access(vol, dir, s_path->u_name, uuid, darwin_ace_rights);
1518 struct vol *vol;
1533 if (NULL == ( vol = getvolbyvid( vid ))) {
1540 if (NULL == ( dir = dirlookup( vol, did ))) {
1556 if (NULL == ( s_path = cname( vol, dir, &ibuf ))) {
1561 of_statdir(vol, s_path);
1613 struct vol *vol;
1626 if (NULL == ( vol = getvolbyvid( vid ))) {
1633 if (NULL == ( dir = dirlookup( vol, did ))) {
1643 if (NULL == ( s_path = cname( vol, dir, &ibuf ))) {
1648 of_statdir(vol, s_path);
1678 if ((ret = remove_acl(vol, s_path->u_name, S_ISDIR(s_path->st.st_mode))) != AFP_OK)
1691 ret = set_acl(vol,
1719 int acltoownermode(const struct vol *vol, char *path, struct stat *st, struct maccess *ma)
1725 || ! (vol->v_flags & AFPVOL_ACLS))
1757 * @param vol (r) volume
1761 int check_vol_acl_support(const struct vol *vol)
1768 if (get_nfsv4_acl(vol->v_path, &aces) == -1)
1774 if ((acl = acl_get_file(vol->v_path, ACL_TYPE_ACCESS)) == NULL)
1786 vol->v_path, ret ? "yes" : "no");