Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Oct 2002 07:56:03 -0700 (PDT)
From:      Brian Feldman <green@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 18663 for review
Message-ID:  <200210041456.g94Eu33e081725@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18663

Change 18663 by green@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@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210041456.g94Eu33e081725>