Fix some style bugs (some whitespace errors only).
Approved by: re (kensmith) (blanket)
This commit is contained in:
parent
d2bb66bacd
commit
b6d0381e7e
@ -225,18 +225,18 @@ struct denode {
|
|||||||
#define DETOV(de) ((de)->de_vnode)
|
#define DETOV(de) ((de)->de_vnode)
|
||||||
|
|
||||||
#define DETIMES(dep, acc, mod, cre) do { \
|
#define DETIMES(dep, acc, mod, cre) do { \
|
||||||
if ((dep)->de_flag & DE_UPDATE) { \
|
if ((dep)->de_flag & DE_UPDATE) { \
|
||||||
(dep)->de_flag |= DE_MODIFIED; \
|
(dep)->de_flag |= DE_MODIFIED; \
|
||||||
timespec2fattime((mod), 0, &(dep)->de_MDate, \
|
timespec2fattime((mod), 0, &(dep)->de_MDate, \
|
||||||
&(dep)->de_MTime, NULL); \
|
&(dep)->de_MTime, NULL); \
|
||||||
(dep)->de_Attributes |= ATTR_ARCHIVE; \
|
(dep)->de_Attributes |= ATTR_ARCHIVE; \
|
||||||
} \
|
} \
|
||||||
if ((dep)->de_pmp->pm_flags & MSDOSFSMNT_NOWIN95) { \
|
if ((dep)->de_pmp->pm_flags & MSDOSFSMNT_NOWIN95) { \
|
||||||
(dep)->de_flag &= ~(DE_UPDATE | DE_CREATE | DE_ACCESS); \
|
(dep)->de_flag &= ~(DE_UPDATE | DE_CREATE | DE_ACCESS); \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
if ((dep)->de_flag & DE_ACCESS) { \
|
if ((dep)->de_flag & DE_ACCESS) { \
|
||||||
u_int16_t adate; \
|
u_int16_t adate; \
|
||||||
\
|
\
|
||||||
timespec2fattime((acc), 0, &adate, NULL, NULL); \
|
timespec2fattime((acc), 0, &adate, NULL, NULL); \
|
||||||
if (adate != (dep)->de_ADate) { \
|
if (adate != (dep)->de_ADate) { \
|
||||||
@ -247,7 +247,7 @@ struct denode {
|
|||||||
if ((dep)->de_flag & DE_CREATE) { \
|
if ((dep)->de_flag & DE_CREATE) { \
|
||||||
timespec2fattime((cre), 0, &(dep)->de_CDate, \
|
timespec2fattime((cre), 0, &(dep)->de_CDate, \
|
||||||
&(dep)->de_CTime, &(dep)->de_CHun); \
|
&(dep)->de_CTime, &(dep)->de_CHun); \
|
||||||
(dep)->de_flag |= DE_MODIFIED; \
|
(dep)->de_flag |= DE_MODIFIED; \
|
||||||
} \
|
} \
|
||||||
(dep)->de_flag &= ~(DE_UPDATE | DE_CREATE | DE_ACCESS); \
|
(dep)->de_flag &= ~(DE_UPDATE | DE_CREATE | DE_ACCESS); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
@ -114,7 +114,7 @@ fatblock(pmp, ofs, bnp, sizep, bop)
|
|||||||
*sizep = size;
|
*sizep = size;
|
||||||
if (bop)
|
if (bop)
|
||||||
*bop = ofs % pmp->pm_fatblocksize;
|
*bop = ofs % pmp->pm_fatblocksize;
|
||||||
pm_fatblocksize = pmp->pm_fatblocksize;
|
pm_fatblocksize = pmp->pm_fatblocksize;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -522,7 +522,7 @@ fatentry(function, pmp, cn, oldcontents, newcontents)
|
|||||||
|
|
||||||
#ifdef MSDOSFS_DEBUG
|
#ifdef MSDOSFS_DEBUG
|
||||||
printf("fatentry(func %d, pmp %p, clust %lu, oldcon %p, newcon %lx)\n",
|
printf("fatentry(func %d, pmp %p, clust %lu, oldcon %p, newcon %lx)\n",
|
||||||
function, pmp, cn, oldcontents, newcontents);
|
function, pmp, cn, oldcontents, newcontents);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DIAGNOSTIC
|
#ifdef DIAGNOSTIC
|
||||||
@ -717,7 +717,7 @@ chainlength(pmp, start, count)
|
|||||||
break;
|
break;
|
||||||
map = pmp->pm_inusemap[idx];
|
map = pmp->pm_inusemap[idx];
|
||||||
if (map) {
|
if (map) {
|
||||||
len += ffs(map) - 1;
|
len += ffs(map) - 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
len += N_INUSEBITS;
|
len += N_INUSEBITS;
|
||||||
@ -794,12 +794,12 @@ clusteralloc(pmp, start, count, fillwith, retcluster, got)
|
|||||||
u_int map;
|
u_int map;
|
||||||
|
|
||||||
#ifdef MSDOSFS_DEBUG
|
#ifdef MSDOSFS_DEBUG
|
||||||
printf("clusteralloc(): find %lu clusters\n",count);
|
printf("clusteralloc(): find %lu clusters\n", count);
|
||||||
#endif
|
#endif
|
||||||
if (start) {
|
if (start) {
|
||||||
if ((len = chainlength(pmp, start, count)) >= count)
|
if ((len = chainlength(pmp, start, count)) >= count)
|
||||||
return (chainalloc(pmp, start, count, fillwith, retcluster, got));
|
return (chainalloc(pmp, start, count, fillwith, retcluster, got));
|
||||||
} else
|
} else
|
||||||
len = 0;
|
len = 0;
|
||||||
|
|
||||||
newst = pmp->pm_nxtfree;
|
newst = pmp->pm_nxtfree;
|
||||||
@ -1080,8 +1080,8 @@ extendfile(dep, count, bpp, ncp, flags)
|
|||||||
*/
|
*/
|
||||||
if (dep->de_Attributes & ATTR_DIRECTORY)
|
if (dep->de_Attributes & ATTR_DIRECTORY)
|
||||||
bp = getblk(pmp->pm_devvp,
|
bp = getblk(pmp->pm_devvp,
|
||||||
cntobn(pmp, cn++),
|
cntobn(pmp, cn++),
|
||||||
pmp->pm_bpcluster, 0, 0, 0);
|
pmp->pm_bpcluster, 0, 0, 0);
|
||||||
else {
|
else {
|
||||||
bp = getblk(DETOV(dep),
|
bp = getblk(DETOV(dep),
|
||||||
de_cn2bn(pmp, frcn++),
|
de_cn2bn(pmp, frcn++),
|
||||||
|
Loading…
Reference in New Issue
Block a user