• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/vfs/

Lines Matching defs:error

287 	int	error;
294 (error = getvolattrlist_parsetab(getvolattrlist_common_tab, alp->commonattr, vsp, sizep, is_64bit)) != 0)
295 return(error);
297 (error = getvolattrlist_parsetab(getvolattrlist_vol_tab, alp->volattr, vsp, sizep, is_64bit)) != 0)
298 return(error);
432 int error;
440 (error = getattrlist_parsetab(getattrlist_common_tab, alp->commonattr, vap, sizep, actionp, is_64bit)) != 0)
441 return(error);
443 (error = getattrlist_parsetab(getattrlist_dir_tab, alp->dirattr, vap, sizep, actionp, is_64bit)) != 0)
444 return(error);
446 (error = getattrlist_parsetab(getattrlist_file_tab, alp->fileattr, vap, sizep, actionp, is_64bit)) != 0)
447 return(error);
457 int error;
460 error = ENOMEM;
463 error = vn_setxattr(vp, XATTR_FINDERINFO_NAME, auio, XATTR_NOSECURITY, ctx);
468 if (error == 0 && need_fsevent(FSE_FINDER_INFO_CHANGED, vp)) {
472 return (error);
520 int error;
539 error = EINVAL;
547 if ((error = getvolattrlist_setupvfsattr(alp, &vs, &fixedsize, is_64bit)) != 0) {
556 error = ENOMEM;
563 error = mac_mount_check_getattr(ctx, mnt, &vs);
564 if (error != 0)
568 if ((error = vfs_getattr(mnt, &vs, ctx)) != 0) {
569 VFS_DEBUG(ctx, vp, "ATTRLIST - ERROR: filesystem returned %d", error);
639 error = EINVAL;
658 if ((error = vnode_getattr(vp, &va, ctx)) != 0) {
709 error = ENOMEM;
715 error = ENOMEM;
769 if ((error = VNOP_IOCTL(vp, HFS_GET_BOOT_INFO, (caddr_t)&f, 0, ctx)) != 0)
901 error = copyout(ab.base, uap->attributeBuffer, ab.allocated);
908 VFS_DEBUG(ctx, vp, "ATTRLIST - returning %d", error);
909 return(error);
931 int error;
935 error = 0;
951 if ((error = namei(&nd)) != 0)
959 if ((error = copyin(uap->alist, &al, sizeof(al))) != 0)
962 error = EINVAL;
971 error = mac_vnode_check_getattrlist(ctx, vp, &al);
972 if (error)
982 error = EINVAL;
987 error = getvolattrlist(vp, uap, &al, ctx, proc_is64);
994 if ((error = getattrlist_setupvattr(&al, &va, &fixedsize, &action, proc_is64, vnode_isdir(vp))) != 0) {
998 if ((error = vnode_authorize(vp, NULL, action, ctx)) != 0) {
1010 error = ENOMEM;
1019 if ((error = vnode_getattr(vp, &va, ctx)) != 0) {
1020 VFS_DEBUG(ctx, vp, "ATTRLIST - ERROR: filesystem returned %d", error);
1067 error = EINVAL;
1136 error = ENOMEM;
1142 error = ENOMEM;
1172 error = EBADF;
1244 error = EINVAL;
1249 error = vnode_getattr(pvp, &lva, ctx);
1252 if (error != 0)
1279 error = ENOMEM;
1283 error = vn_getxattr(vp, XATTR_FINDERINFO_NAME, auio, &fisize, XATTR_NOSECURITY, ctx);
1286 if (error != 0) {
1287 if ((error == ENOATTR) || (error == ENOENT) || (error == ENOTSUP) || (error == EPERM)) {
1290 error = 0;
1393 error = EINVAL;
1398 error = vnode_getattr(pvp, &lva, ctx);
1401 if (error != 0)
1456 if ((error = vn_getxattr(vp, XATTR_RESOURCEFORK_NAME, NULL, &rsize, XATTR_NOSECURITY, ctx)) != 0) {
1457 if ((error == ENOENT) || (error == ENOATTR) || (error == ENOTSUP) || (error == EPERM)) {
1459 error = 0;
1494 error = copyout(ab.base, uap->attributeBuffer, imin(uap->bufferSize, ab.allocated));
1508 VFS_DEBUG(ctx, vp, "ATTRLIST - returning %d", error);
1509 return(error);
1524 #define ATTR_UNPACK(v) do {if ((error = attrlist_unpack_fixed(&cursor, bufend, &v, sizeof(v))) != 0) goto out;} while(0);
1554 int proc_is64, error;
1565 error = 0;
1577 if ((error = namei(&nd)) != 0)
1585 if ((error = copyin(uap->alist, (caddr_t) &al, sizeof (al))))
1588 error = EINVAL;
1601 error = EINVAL;
1610 error = EINVAL;
1627 error = ENOMEM;
1633 error = ENOMEM;
1636 if ((error = copyin(uap->attributeBuffer, user_buf, uap->bufferSize)) != 0) {
1643 error = mac_vnode_check_setattrlist(&context, vp, &al);
1644 if (error)
1681 error = EINVAL;
1718 error = EINVAL;
1726 error = EINVAL;
1737 error = EINVAL;
1760 error = EINVAL;
1772 error = EINVAL;
1781 if ((va.va_active != 0LL) && ((error = vnode_authattr(vp, &va, &action, &context)) != 0)) {
1782 VFS_DEBUG(ctx, vp, "ATTRLIST - ERROR: attribute changes refused: %d", error);
1792 error = EINVAL;
1800 if ((action != 0) && ((error = vnode_authorize(vp, NULL, action, &context)) != 0)) {
1817 if ((error = setattrlist_setfinderinfo(vp, fndrinfo, ctx)) != 0) {
1826 if ((va.va_active != 0LL) && ((error = vnode_setattr(vp, &va, &context)) != 0)) {
1827 VFS_DEBUG(ctx, vp, "ATTRLIST - ERROR: filesystem returned %d", error);
1837 error = VNOP_IOCTL(vp, HFS_SET_BOOT_INFO, (caddr_t)fndrinfo, 0, &context);
1838 if (error != 0)
1843 } else if ((error = setattrlist_setfinderinfo(vp, fndrinfo, ctx)) != 0) {
1861 error = mac_mount_check_setattr(ctx, vp->v_mount, &vs);
1862 if (error != 0)
1866 if ((error = vfs_setattr(vp->v_mount, &vs, ctx)) != 0) {
1872 error = EINVAL;
1885 VFS_DEBUG(ctx, vp, "ATTRLIST - set returning %d", error);
1886 return(error);