mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-01 21:57:10 +00:00
The existing stat_more and setattr_more interfaces aren't extensible. This solves that problem by adding attribute interfaces which specify the specific fields to work with. We're about to add a few more inode fields and it makes sense to add them to this extensible structure rather than adding more ioctls or relatively clumsy xattrs. This is modeled loosely on the upstream kernel's statx support. The ioctl entry points call core functions so that we can also implement the existing stat_more and setattr_more interfaces in terms of these new attr_x functions. Signed-off-by: Zach Brown <zab@versity.com>
12 lines
301 B
C
12 lines
301 B
C
#ifndef _SCOUTFS_ATTR_X_H_
|
|
#define _SCOUTFS_ATTR_X_H_
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/fs.h>
|
|
#include "ioctl.h"
|
|
|
|
int scoutfs_get_attr_x(struct inode *inode, struct scoutfs_ioctl_inode_attr_x *iax);
|
|
int scoutfs_set_attr_x(struct inode *inode, struct scoutfs_ioctl_inode_attr_x *iax);
|
|
|
|
#endif
|