OSDN Git Service

ANDROID: sdcardfs: copy lower inode attributes in ->ioctl
authorDaniel Rosenberg <drosen@google.com>
Fri, 10 Mar 2017 05:24:58 +0000 (21:24 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commitc04a743ade36ff5e5e2096434928a4e98ace29ac
tree89f33288986a09f16c6296f08dcbf9baf4e9413f
parent971b4452f0fbef52188a4ed9115f18707603a6d7
ANDROID: sdcardfs: copy lower inode attributes in ->ioctl

Adapted from wrapfs
commit fbc9c6f83ea6 ("Wrapfs: copy lower inode attributes in ->ioctl")
commit e97d8e26cc9e ("Wrapfs: use file_inode helper")

Some ioctls (e.g., EXT2_IOC_SETFLAGS) can change inode attributes, so copy
them from lower inode.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 35766959
Change-Id: I0f12684b9dbd4088b4a622c7ea9c03087f40e572
fs/sdcardfs/file.c