Remove temporary API bandage that allowed applications speaking the

older API to list attributes on a file (zero-length attribute name)
to function.  extattr_list_*() are now the only available APIs to
use when listing attributes.
This commit is contained in:
Robert Watson 2004-06-24 17:14:28 +00:00
parent 0247998d45
commit 5e11031e05
2 changed files with 0 additions and 18 deletions

View File

@ -4398,15 +4398,6 @@ extattr_get_vp(struct vnode *vp, int attrnamespace, const char *attrname,
size_t size, *sizep;
int error;
/*
* XXX: Temporary API compatibility for applications that know
* about this hack ("" means list), but haven't been updated
* for the extattr_list_*() system calls yet. This will go
* away for FreeBSD 5.3.
*/
if (strlen(attrname) == 0)
return (extattr_list_vp(vp, attrnamespace, data, nbytes, td));
VOP_LEASE(vp, td, td->td_ucred, LEASE_READ);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);

View File

@ -4398,15 +4398,6 @@ extattr_get_vp(struct vnode *vp, int attrnamespace, const char *attrname,
size_t size, *sizep;
int error;
/*
* XXX: Temporary API compatibility for applications that know
* about this hack ("" means list), but haven't been updated
* for the extattr_list_*() system calls yet. This will go
* away for FreeBSD 5.3.
*/
if (strlen(attrname) == 0)
return (extattr_list_vp(vp, attrnamespace, data, nbytes, td));
VOP_LEASE(vp, td, td->td_ucred, LEASE_READ);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);