Author: kib
Date: Fri Apr  1 14:04:36 2011
New Revision: 220246
URL: http://svn.freebsd.org/changeset/base/220246

Log:
  MFC r220014:
  Report EBUSY instead of EROFS for attempt of deleting or renaming the
  root directory of msdosfs mount.

Modified:
  stable/8/sys/fs/msdosfs/msdosfs_lookup.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/fs/msdosfs/msdosfs_lookup.c
==============================================================================
--- stable/8/sys/fs/msdosfs/msdosfs_lookup.c    Fri Apr  1 13:28:34 2011        
(r220245)
+++ stable/8/sys/fs/msdosfs/msdosfs_lookup.c    Fri Apr  1 14:04:36 2011        
(r220246)
@@ -458,7 +458,7 @@ foundroot:
                 * Don't allow deleting the root.
                 */
                if (blkoff == MSDOSFSROOT_OFS)
-                       return EROFS;                           /* really? XXX 
*/
+                       return (EBUSY);
 
                /*
                 * Write access to directory required to delete files.
@@ -491,7 +491,7 @@ foundroot:
         */
        if (nameiop == RENAME && (flags & ISLASTCN)) {
                if (blkoff == MSDOSFSROOT_OFS)
-                       return EROFS;                           /* really? XXX 
*/
+                       return (EBUSY);
 
                error = VOP_ACCESS(vdp, VWRITE, cnp->cn_cred, cnp->cn_thread);
                if (error)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to