FreeBSD Bugzilla – Attachment 73278 Details for
Bug 106255
[msdosfs] [patch]: correct setting of archive flag
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
msdos.diff
msdos.diff (text/plain), 1.67 KB, created by
Rene Ladan
on 2006-12-04 12:26:53 UTC
(
hide
)
Description:
msdos.diff
Filename:
MIME Type:
Creator:
Rene Ladan
Created:
2006-12-04 12:26:53 UTC
Size:
1.67 KB
patch
obsolete
>--- msdosfs_vnops.c.orig Sun Dec 3 20:45:24 2006 >+++ msdosfs_vnops.c Mon Dec 4 12:43:37 2006 >@@ -354,7 +354,7 @@ > vap->va_birthtime.tv_nsec = 0; > } > vap->va_flags = 0; >- if ((dep->de_Attributes & ATTR_ARCHIVE) == 0) >+ if (dep->de_Attributes & ATTR_ARCHIVE) > vap->va_flags |= SF_ARCHIVED; > vap->va_gen = 0; > vap->va_blocksize = pmp->pm_bpcluster; >@@ -431,12 +431,13 @@ > if (error) > return (error); > } >- if (vap->va_flags & ~SF_ARCHIVED) >- return EOPNOTSUPP; > if (vap->va_flags & SF_ARCHIVED) > dep->de_Attributes &= ~ATTR_ARCHIVE; >- else if (!(dep->de_Attributes & ATTR_DIRECTORY)) >- dep->de_Attributes |= ATTR_ARCHIVE; >+ else >+ if (dep->de_Attributes & ATTR_DIRECTORY) >+ return EOPNOTSUPP; >+ else >+ dep->de_Attributes |= ATTR_ARCHIVE; > dep->de_flag |= DE_MODIFIED; > } > >@@ -506,8 +507,9 @@ > dep->de_flag &= ~DE_UPDATE; > timespec2fattime(&vap->va_mtime, 0, > &dep->de_MDate, &dep->de_MTime, NULL); >+ dep->de_Attributes |= ATTR_ARCHIVE; >+ /* only set archive flag when file has changed */ > } >- dep->de_Attributes |= ATTR_ARCHIVE; > dep->de_flag |= DE_MODIFIED; > } > } >@@ -531,7 +533,6 @@ > dep->de_Attributes &= ~ATTR_READONLY; > else > dep->de_Attributes |= ATTR_READONLY; >- dep->de_Attributes |= ATTR_ARCHIVE; > dep->de_flag |= DE_MODIFIED; > } > } >--- denode.h.orig Thu Oct 26 11:21:07 2006 >+++ denode.h Mon Dec 4 12:35:00 2006 >@@ -239,6 +239,7 @@ > timespec2fattime((cre), 0, &(dep)->de_CDate, \ > &(dep)->de_CTime, &(dep)->de_CHun); \ > (dep)->de_flag |= DE_MODIFIED; \ >+ (dep)->de_Attributes |= ATTR_ARCHIVE; \ > } \ > (dep)->de_flag &= ~(DE_UPDATE | DE_CREATE | DE_ACCESS); \ > } while (0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 106255
:
73277
| 73278