PERFORCE change 18663 for review

Brian Feldman green at freebsd.org
Fri Oct 4 14:56:03 GMT 2002


http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18663

Change 18663 by green at green_laptop_2 on 2002/10/04 07:55:58

	Reject, not crash on, files currently invalid to have extended
	attributes on.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/ufs/ffs/ffs_vnops.c#12 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/ufs/ffs/ffs_vnops.c#12 (text+ko) ====

@@ -1402,6 +1402,19 @@
 	struct ufs2_dinode *dp;
 	int error;
 
+	/*
+	 * Since these inode types don't contain storage, their vnode
+	 * operations don't include the strategy() necessary for EA on
+	 * UFS2 right now.
+	 */
+	switch (vp->v_type) {
+	case VCHR:
+	case VBLK:
+	case VFIFO:
+		return (EFTYPE);
+	default:
+		break;
+	}
 	ip = VTOI(vp);
 	fs = ip->i_fs;
 
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list