Author: trasz Date: Tue Nov 4 12:30:31 2008 New Revision: 184629 URL: http://svn.freebsd.org/changeset/base/184629
Log: In UFS, when reading EA that contains ACL fails for some reason, include inode number and filesystem name, so the administrator can fix the problem. Approved by: rwatson (mentor) Modified: head/sys/ufs/ufs/ufs_acl.c Modified: head/sys/ufs/ufs/ufs_acl.c ============================================================================== --- head/sys/ufs/ufs/ufs_acl.c Tue Nov 4 12:03:55 2008 (r184628) +++ head/sys/ufs/ufs/ufs_acl.c Tue Nov 4 12:30:31 2008 (r184629) @@ -53,6 +53,7 @@ __FBSDID("$FreeBSD$"); #include <ufs/ufs/dir.h> #include <ufs/ufs/ufsmount.h> #include <ufs/ufs/ufs_extern.h> +#include <ufs/ffs/fs.h> #ifdef UFS_ACL @@ -217,7 +218,8 @@ ufs_getacl(ap) * are unsafe. */ printf("ufs_getacl(): Loaded invalid ACL (" - "%d bytes)\n", len); + "%d bytes), inumber %d on %s\n", len, + ip->i_number, ip->i_fs->fs_fsmnt); return (EPERM); } ufs_sync_acl_from_inode(ip, ap->a_aclp); @@ -262,7 +264,8 @@ ufs_getacl(ap) * protections are unsafe. */ printf("ufs_getacl(): Loaded invalid ACL (" - "%d bytes)\n", len); + "%d bytes), inumber %d on %s\n", len, + ip->i_number, ip->i_fs->fs_fsmnt); return (EPERM); } break; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"