]> www.infradead.org Git - users/willy/linux.git/commit
hfsplus: return file attributes on statx
authorErnesto A. Fernández <ernesto.mnd.fernandez@gmail.com>
Wed, 5 Dec 2018 00:14:11 +0000 (11:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Dec 2018 22:09:06 +0000 (09:09 +1100)
commitd537af962a75610a5d93ba7bbc9ca869cd34563e
treea3348e665c38061f6e77225c481866e86ecc7169
parentdb97fd428103e39addccb92e6cc2d840953bc4d7
hfsplus: return file attributes on statx

The immutable, append-only and no-dump attributes can only be retrieved
with an ioctl; implement the ->getattr() method to return them on statx.
Do not return the inode birthtime yet, because the issue of how best to
handle the post-2038 timestamps is still under discussion.

This patch is needed to pass xfstests generic/424.

Link: http://lkml.kernel.org/r/20181014163558.sxorxlzjqccq2lpw@eaf
Signed-off-by: Ernesto A. Fernández <ernesto.mnd.fernandez@gmail.com>
Cc: Viacheslav Dubeyko <slava@dubeyko.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
fs/hfsplus/dir.c
fs/hfsplus/hfsplus_fs.h
fs/hfsplus/inode.c