summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2008-11-04 12:30:31 +0000
committertrasz <trasz@FreeBSD.org>2008-11-04 12:30:31 +0000
commit5ff0dc16bf8577b67b34e18769566a6bc74ba800 (patch)
treecebb5e09c8935e8f7efab7d5118fafff4c6e3b09 /sys/ufs
parent85b1030aa82414ee7bfcb7727583f5dae5ddb472 (diff)
downloadFreeBSD-src-5ff0dc16bf8577b67b34e18769566a6bc74ba800.zip
FreeBSD-src-5ff0dc16bf8577b67b34e18769566a6bc74ba800.tar.gz
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)
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_acl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_acl.c b/sys/ufs/ufs/ufs_acl.c
index 732009f..89488c7 100644
--- a/sys/ufs/ufs/ufs_acl.c
+++ b/sys/ufs/ufs/ufs_acl.c
@@ -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;
OpenPOWER on IntegriCloud