Skip to contentSkip to conversation

gfs2: Update ctime in setflags ioctl

PATCH New Andreas Gruenbacher 2 participants 2 messages Sep 21, 2017 – Sep 25, 2017 GFS2 file system

lore
Share & tools
lore

Andreas Gruenbacher

author maintainer
#0 lore raw

PATCH 1/1 gfs2: Update ctime in setflags ioctl

The FS_IOC_SETFLAGS ioctl is supposed to update the inode ctime. Fixes xfstests generic/277.

---
 fs/gfs2/file.c | 1 +
 1 file changed, 1 insertion(+)
fs/gfs2/file.c +1 -0
index 41ac7ef2755b..8fefb80fe830 100644
@@ -282,6 +282,7 @@ static int do_gfs2_set_flags(struct file *filp, u32 reqflags, u32 mask)
 	error = gfs2_meta_inode_buffer(ip, &bh);
 	if (error)
 		goto out_trans_end;
+	inode->i_ctime = current_time(inode);
 	gfs2_trans_add_meta(ip->i_gl, bh);
 	ip->i_diskflags = new_flags;
 	gfs2_dinode_out(ip, bh->b_data);
Signature · 1 line
2.13.3
#1 lore raw

PATCH 1/1 gfs2: Update ctime in setflags ioctl

----- Original Message -----

| The FS_IOC_SETFLAGS ioctl is supposed to update the inode ctime.
| Fixes xfstests generic/277.
| 
| Signed-off-by: Andreas Gruenbacher <[email protected]>
| ---
|  fs/gfs2/file.c | 1 +
|  1 file changed, 1 insertion(+)

Hi,

Thanks. This is now pushed to the for-next branch of the linux-gfs2 tree:
https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commit/?h=for-next&id=07338c887d1d4e7889574f194dbeef6d56d094e8

Regards,

Bob Peterson
Red Hat File Systems