Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2018 12:44:29 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336966 - head/sys/fs/msdosfs
Message-ID:  <201807311244.w6VCiTDD075234@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Jul 31 12:44:28 2018
New Revision: 336966
URL: https://svnweb.freebsd.org/changeset/base/336966

Log:
  msdosfs: trim EOL whitespace

Modified:
  head/sys/fs/msdosfs/msdosfs_conv.c
  head/sys/fs/msdosfs/msdosfs_denode.c
  head/sys/fs/msdosfs/msdosfs_lookup.c
  head/sys/fs/msdosfs/msdosfs_vfsops.c
  head/sys/fs/msdosfs/msdosfs_vnops.c

Modified: head/sys/fs/msdosfs/msdosfs_conv.c
==============================================================================
--- head/sys/fs/msdosfs/msdosfs_conv.c	Tue Jul 31 12:36:46 2018	(r336965)
+++ head/sys/fs/msdosfs/msdosfs_conv.c	Tue Jul 31 12:44:28 2018	(r336966)
@@ -70,7 +70,7 @@ static uint16_t unix2winchr(const u_char **, size_t *,
 
 /*
  * 0 - character disallowed in long file name.
- * 1 - character should be replaced by '_' in DOS file name, 
+ * 1 - character should be replaced by '_' in DOS file name,
  *     and generation number inserted.
  * 2 - character ('.' and ' ') should be skipped in DOS file name,
  *     and generation number inserted.
@@ -353,7 +353,7 @@ unix2dosfn(const u_char *un, u_char dn[12], size_t unl
 	 * Note(2003/7): It seems recent Windows has
 	 *	 defferent rule than this code, that Windows
 	 *	 ignores all dots before extension, and use all
-	 * 	 chars as filename except for dots.
+	 *	 chars as filename except for dots.
 	 */
 	dp = dp1 = NULL;
 	for (cp = un + 1, i = unlen - 1; --i >= 0;) {

Modified: head/sys/fs/msdosfs/msdosfs_denode.c
==============================================================================
--- head/sys/fs/msdosfs/msdosfs_denode.c	Tue Jul 31 12:36:46 2018	(r336965)
+++ head/sys/fs/msdosfs/msdosfs_denode.c	Tue Jul 31 12:44:28 2018	(r336966)
@@ -383,7 +383,7 @@ detrunc(struct denode *dep, u_long length, int flags, 
 		dep->de_StartCluster = 0;
 		eofentry = ~0;
 	} else {
-		error = pcbmap(dep, de_clcount(pmp, length) - 1, 0, 
+		error = pcbmap(dep, de_clcount(pmp, length) - 1, 0,
 			       &eofentry, 0);
 		if (error) {
 #ifdef MSDOSFS_DEBUG

Modified: head/sys/fs/msdosfs/msdosfs_lookup.c
==============================================================================
--- head/sys/fs/msdosfs/msdosfs_lookup.c	Tue Jul 31 12:36:46 2018	(r336965)
+++ head/sys/fs/msdosfs/msdosfs_lookup.c	Tue Jul 31 12:44:28 2018	(r336966)
@@ -457,7 +457,7 @@ found:
 	 */
 	brelse(bp);
 	bp = NULL;
-	
+
 foundroot:
 	/*
 	 * If we entered at foundroot, then we are looking for the . or ..
@@ -1013,7 +1013,7 @@ uniqdosname(struct denode *dep, struct componentname *
 	daddr_t bn;
 	struct buf *bp;
 	int error;
-	
+
 	if (pmp->pm_flags & MSDOSFSMNT_SHORTNAME)
 		return (unix2dosfn((const u_char *)cnp->cn_nameptr, cp,
 		    cnp->cn_namelen, 0, pmp) ? 0 : EINVAL);

Modified: head/sys/fs/msdosfs/msdosfs_vfsops.c
==============================================================================
--- head/sys/fs/msdosfs/msdosfs_vfsops.c	Tue Jul 31 12:36:46 2018	(r336965)
+++ head/sys/fs/msdosfs/msdosfs_vfsops.c	Tue Jul 31 12:44:28 2018	(r336966)
@@ -320,7 +320,7 @@ msdosfs_mount(struct mount *mp)
 			/* Now that the volume is modifiable, mark it dirty. */
 			error = markvoldirty(pmp, 1);
 			if (error)
-				return (error); 
+				return (error);
 		}
 	}
 	/*

Modified: head/sys/fs/msdosfs/msdosfs_vnops.c
==============================================================================
--- head/sys/fs/msdosfs/msdosfs_vnops.c	Tue Jul 31 12:36:46 2018	(r336965)
+++ head/sys/fs/msdosfs/msdosfs_vnops.c	Tue Jul 31 12:44:28 2018	(r336966)
@@ -289,7 +289,7 @@ msdosfs_getattr(struct vop_getattr_args *ap)
 	mode = S_IRWXU|S_IRWXG|S_IRWXO;
 	if (dep->de_Attributes & ATTR_READONLY)
 		mode &= ~(S_IWUSR|S_IWGRP|S_IWOTH);
-	vap->va_mode = mode & 
+	vap->va_mode = mode &
 	    (ap->a_vp->v_type == VDIR ? pmp->pm_dirmask : pmp->pm_mask);
 	vap->va_uid = pmp->pm_uid;
 	vap->va_gid = pmp->pm_gid;



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