The Samba-Bugzilla – Attachment 15408 Details for
Bug 14090
vfs_glusterfs does not initialize st_ex_iflags and st_ex_file_id
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 4.11 cherry-picked from master
bug14090-v411.patch (text/plain), 1.56 KB, created by
Ralph Böhme
on 2019-08-21 15:01:13 UTC
(
hide
)
Description:
Patch for 4.11 cherry-picked from master
Filename:
MIME Type:
Creator:
Ralph Böhme
Created:
2019-08-21 15:01:13 UTC
Size:
1.56 KB
patch
obsolete
>From 2e634532e5efaac624a501c16ae63c6e0a71cf4b Mon Sep 17 00:00:00 2001 >From: Ralph Boehme <slow@samba.org> >Date: Wed, 14 Aug 2019 10:11:15 +0200 >Subject: [PATCH] vfs_glusterfs: initialize st_ex_file_id, st_ex_itime and > st_ex_iflags > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=14090 >RN: vfs_glusterfs: initialize st_ex_file_id, st_ex_itime and st_ex_iflags > >Signed-off-by: Ralph Boehme <slow@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> > >Autobuild-User(master): Jeremy Allison <jra@samba.org> >Autobuild-Date(master): Fri Aug 16 01:07:23 UTC 2019 on sn-devel-184 > >(cherry picked from commit 3ee78cc9979a72ebbe65a16c60967a1735a0d208) >--- > source3/modules/vfs_glusterfs.c | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c >index 95f32f9d0a6..56e03014fea 100644 >--- a/source3/modules/vfs_glusterfs.c >+++ b/source3/modules/vfs_glusterfs.c >@@ -74,12 +74,16 @@ static void smb_stat_ex_from_stat(struct stat_ex *dst, const struct stat *src) > dst->st_ex_btime.tv_sec = src->st_mtime; > dst->st_ex_blksize = src->st_blksize; > dst->st_ex_blocks = src->st_blocks; >+ dst->st_ex_file_id = dst->st_ex_ino; >+ dst->st_ex_iflags |= ST_EX_IFLAG_CALCULATED_FILE_ID; > #ifdef STAT_HAVE_NSEC > dst->st_ex_atime.tv_nsec = src->st_atime_nsec; > dst->st_ex_mtime.tv_nsec = src->st_mtime_nsec; > dst->st_ex_ctime.tv_nsec = src->st_ctime_nsec; > dst->st_ex_btime.tv_nsec = src->st_mtime_nsec; > #endif >+ dst->st_ex_itime = dst->st_ex_btime; >+ dst->st_ex_iflags |= ST_EX_IFLAG_CALCULATED_ITIME; > } > > /* pre-opened glfs_t */ >-- >2.21.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 Raw
Flags:
jra
:
review+
Actions:
View
Attachments on
bug 14090
: 15408