The Samba-Bugzilla – Attachment 8872 Details for
Bug 9870
Not fetching the latest modification time on a folder if we have read locks on it.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for write time update.
samba-wtime-update.patch (text/plain), 743 bytes, created by
Hemanth
on 2013-05-08 18:17:40 UTC
(
hide
)
Description:
Patch for write time update.
Filename:
MIME Type:
Creator:
Hemanth
Created:
2013-05-08 18:17:40 UTC
Size:
743 bytes
patch
obsolete
>--- samba-3.6.12/source3/lib/system.c.orig 2013-05-08 10:27:59.777009968 -0700 >+++ samba-3.6.12/source3/lib/system.c 2013-05-08 10:44:42.772639580 -0700 >@@ -529,11 +529,14 @@ static void make_create_timespec(const s > void update_stat_ex_mtime(struct stat_ex *dst, > struct timespec write_ts) > { >- dst->st_ex_mtime = write_ts; >- >- /* We may have to recalculate btime. */ >- if (dst->st_ex_calculated_birthtime) { >- dst->st_ex_btime = calc_create_time_stat_ex(dst); >+ /* Update the old write timestamp only for files */ >+ if(!S_ISDIR(dst->st_ex_mode)) { >+ dst->st_ex_mtime = write_ts; >+ >+ /* We may have to recalculate btime. */ >+ if (dst->st_ex_calculated_birthtime) { >+ dst->st_ex_btime = calc_create_time_stat_ex(dst); >+ } > } > } >
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 Raw
Actions:
View
Attachments on
bug 9870
:
8870
|
8872
|
9501
|
9502
|
9513