overlayfs.h (5b02bfc1e7e3811c5bf7f0fa626a0694d0dbbd77) overlayfs.h (420a62dde6ebca7bc22e6c57c9cb25d7967ff1ea)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 *
4 * Copyright (C) 2011 Novell Inc.
5 */
6
7#include <linux/kernel.h>
8#include <linux/uuid.h>

--- 685 unchanged lines hidden (view full) ---

694}
695
696/* inode.c */
697int ovl_set_nlink_upper(struct dentry *dentry);
698int ovl_set_nlink_lower(struct dentry *dentry);
699unsigned int ovl_get_nlink(struct ovl_fs *ofs, struct dentry *lowerdentry,
700 struct dentry *upperdentry,
701 unsigned int fallback);
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 *
4 * Copyright (C) 2011 Novell Inc.
5 */
6
7#include <linux/kernel.h>
8#include <linux/uuid.h>

--- 685 unchanged lines hidden (view full) ---

694}
695
696/* inode.c */
697int ovl_set_nlink_upper(struct dentry *dentry);
698int ovl_set_nlink_lower(struct dentry *dentry);
699unsigned int ovl_get_nlink(struct ovl_fs *ofs, struct dentry *lowerdentry,
700 struct dentry *upperdentry,
701 unsigned int fallback);
702int ovl_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
703 struct iattr *attr);
704int ovl_getattr(struct mnt_idmap *idmap, const struct path *path,
705 struct kstat *stat, u32 request_mask, unsigned int flags);
706int ovl_permission(struct mnt_idmap *idmap, struct inode *inode,
707 int mask);
702int ovl_permission(struct mnt_idmap *idmap, struct inode *inode,
703 int mask);
708int ovl_xattr_set(struct dentry *dentry, struct inode *inode, const char *name,
709 const void *value, size_t size, int flags);
710int ovl_xattr_get(struct dentry *dentry, struct inode *inode, const char *name,
711 void *value, size_t size);
712ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size);
713
714#ifdef CONFIG_FS_POSIX_ACL
715struct posix_acl *do_ovl_get_acl(struct mnt_idmap *idmap,
716 struct inode *inode, int type,
717 bool rcu, bool noperm);
718static inline struct posix_acl *ovl_get_inode_acl(struct inode *inode, int type,
719 bool rcu)
720{

--- 120 unchanged lines hidden (view full) ---

841/* super.c */
842int ovl_fill_super(struct super_block *sb, struct fs_context *fc);
843
844/* Will this overlay be forced to mount/remount ro? */
845static inline bool ovl_force_readonly(struct ovl_fs *ofs)
846{
847 return (!ovl_upper_mnt(ofs) || !ofs->workdir);
848}
704
705#ifdef CONFIG_FS_POSIX_ACL
706struct posix_acl *do_ovl_get_acl(struct mnt_idmap *idmap,
707 struct inode *inode, int type,
708 bool rcu, bool noperm);
709static inline struct posix_acl *ovl_get_inode_acl(struct inode *inode, int type,
710 bool rcu)
711{

--- 120 unchanged lines hidden (view full) ---

832/* super.c */
833int ovl_fill_super(struct super_block *sb, struct fs_context *fc);
834
835/* Will this overlay be forced to mount/remount ro? */
836static inline bool ovl_force_readonly(struct ovl_fs *ofs)
837{
838 return (!ovl_upper_mnt(ofs) || !ofs->workdir);
839}
840
841/* xattr.c */
842
843const struct xattr_handler * const *ovl_xattr_handlers(struct ovl_fs *ofs);
844int ovl_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
845 struct iattr *attr);
846int ovl_getattr(struct mnt_idmap *idmap, const struct path *path,
847 struct kstat *stat, u32 request_mask, unsigned int flags);
848ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size);