/*
- * $Id: volume.c,v 1.79 2009-02-02 11:55:01 franklahm Exp $
+ * $Id: volume.c,v 1.80 2009-02-16 13:49:20 franklahm Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
{AFPVOL_NODEV, "NODEV"}, /* always use 0 for device number in cnid calls */
{AFPVOL_EILSEQ, "ILLEGALSEQ"}, /* encode illegal sequence */
{AFPVOL_CACHE, "CACHEID"}, /* Use adouble v2 CNID caching, default don't use it */
+ {AFPVOL_EXT_ATTRS, "EXT_ATTRS"}, /* Vol supports Extened Attributes */
{AFPVOL_ACLS, "ACLS"}, /* Vol supports ACLs */
{0, NULL}
};
options[VOLOPT_ROOTPREEXEC].i_value = 1;
else if (strcasecmp(p, "upriv") == 0)
options[VOLOPT_FLAGS].i_value |= AFPVOL_UNIX_PRIV;
+ else if (strcasecmp(p, "extattrs") == 0)
+ options[VOLOPT_FLAGS].i_value |= AFPVOL_EXT_ATTRS;
else if (strcasecmp(p, "acls") == 0)
options[VOLOPT_FLAGS].i_value |= AFPVOL_ACLS;
else if (strcasecmp(p, "nodev") == 0)
ashort |= VOLPBIT_ATTR_UNIXPRIV;
}
if (afp_version >= 32) {
+ if (vol->v_flags & AFPVOL_EXT_ATTRS)
+ ashort |= VOLPBIT_ATTR_EXT_ATTRS;
if (vol->v_flags & AFPVOL_ACLS)
ashort |= VOLPBIT_ATTR_ACLS;
}