Date: Tue, 24 Jul 2018 21:10:18 +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: r336687 - head/sys/fs/msdosfs Message-ID: <201807242110.w6OLAIYp075644@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Tue Jul 24 21:10:17 2018 New Revision: 336687 URL: https://svnweb.freebsd.org/changeset/base/336687 Log: Revert msdosfs MAKEFS #ifdef changes from r319870 These changes are not needed for current msdosfs makefs WIP. Submitted by: Siva Mahadevan Sponsored by: The FreeBSD Foundation Modified: head/sys/fs/msdosfs/denode.h head/sys/fs/msdosfs/direntry.h head/sys/fs/msdosfs/fat.h Modified: head/sys/fs/msdosfs/denode.h ============================================================================== --- head/sys/fs/msdosfs/denode.h Tue Jul 24 21:02:11 2018 (r336686) +++ head/sys/fs/msdosfs/denode.h Tue Jul 24 21:10:17 2018 (r336687) @@ -211,7 +211,7 @@ struct denode { ((dep)->de_Attributes & ATTR_DIRECTORY) ? 0 : (dep)->de_FileSize), \ putushort((dp)->deHighClust, (dep)->de_StartCluster >> 16)) -#if defined(_KERNEL) || defined(MAKEFS) +#ifdef _KERNEL #define VTODE(vp) ((struct denode *)(vp)->v_data) #define DETOV(de) ((de)->de_vnode) @@ -281,6 +281,5 @@ int deupdat(struct denode *dep, int waitfor); int removede(struct denode *pdep, struct denode *dep); int detrunc(struct denode *dep, u_long length, int flags, struct ucred *cred); int doscheckpath( struct denode *source, struct denode *target); -#endif /* _KERNEL || MAKEFS */ +#endif /* _KERNEL */ #endif /* !_FS_MSDOSFS_DENODE_H_ */ - Modified: head/sys/fs/msdosfs/direntry.h ============================================================================== --- head/sys/fs/msdosfs/direntry.h Tue Jul 24 21:02:11 2018 (r336686) +++ head/sys/fs/msdosfs/direntry.h Tue Jul 24 21:10:17 2018 (r336687) @@ -135,7 +135,7 @@ struct winentry { #define DD_YEAR_MASK 0xFE00 /* year - 1980 */ #define DD_YEAR_SHIFT 9 -#if defined(_KERNEL) || defined(MAKEFS) +#ifdef _KERNEL struct mbnambuf { size_t nb_len; int nb_last_id; @@ -161,5 +161,5 @@ int win2unixfn(struct mbnambuf *nbp, struct winentry * uint8_t winChksum(uint8_t *name); int winSlotCnt(const u_char *un, size_t unlen, struct msdosfsmount *pmp); size_t winLenFixup(const u_char *un, size_t unlen); -#endif /* _KERNEL || MAKEFS */ +#endif /* _KERNEL */ #endif /* !_FS_MSDOSFS_DIRENTRY_H_ */ Modified: head/sys/fs/msdosfs/fat.h ============================================================================== --- head/sys/fs/msdosfs/fat.h Tue Jul 24 21:02:11 2018 (r336686) +++ head/sys/fs/msdosfs/fat.h Tue Jul 24 21:10:17 2018 (r336687) @@ -82,7 +82,7 @@ #define MSDOSFSEOF(pmp, cn) ((((cn) | ~(pmp)->pm_fatmask) & CLUST_EOFS) == CLUST_EOFS) -#if defined(_KERNEL) || defined(MAKEFS) +#ifdef _KERNEL /* * These are the values for the function argument to the function * fatentry(). @@ -105,5 +105,5 @@ int extendfile(struct denode *dep, u_long count, struc void fc_purge(struct denode *dep, u_int frcn); int markvoldirty(struct msdosfsmount *pmp, int dirty); -#endif /* _KERNEL || MAKEFS */ +#endif /* _KERNEL */ #endif /* !_FS_MSDOSFS_FAT_H_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807242110.w6OLAIYp075644>