overlayfs.h (7f53b7d047d221b9fe38b9f2203bd4499135be88) overlayfs.h (e6d2ebddbc5205635a021a910f2f0e93bc2aa534)
1/*
2 *
3 * Copyright (C) 2011 Novell Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published by
7 * the Free Software Foundation.
8 */

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

206bool ovl_dentry_is_opaque(struct dentry *dentry);
207bool ovl_dentry_is_impure(struct dentry *dentry);
208bool ovl_dentry_is_whiteout(struct dentry *dentry);
209void ovl_dentry_set_opaque(struct dentry *dentry);
210bool ovl_redirect_dir(struct super_block *sb);
211const char *ovl_dentry_get_redirect(struct dentry *dentry);
212void ovl_dentry_set_redirect(struct dentry *dentry, const char *redirect);
213void ovl_dentry_update(struct dentry *dentry, struct dentry *upperdentry);
1/*
2 *
3 * Copyright (C) 2011 Novell Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published by
7 * the Free Software Foundation.
8 */

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

206bool ovl_dentry_is_opaque(struct dentry *dentry);
207bool ovl_dentry_is_impure(struct dentry *dentry);
208bool ovl_dentry_is_whiteout(struct dentry *dentry);
209void ovl_dentry_set_opaque(struct dentry *dentry);
210bool ovl_redirect_dir(struct super_block *sb);
211const char *ovl_dentry_get_redirect(struct dentry *dentry);
212void ovl_dentry_set_redirect(struct dentry *dentry, const char *redirect);
213void ovl_dentry_update(struct dentry *dentry, struct dentry *upperdentry);
214void ovl_inode_init(struct inode *inode, struct inode *realinode,
215 bool is_upper);
214void ovl_inode_init(struct inode *inode, struct dentry *dentry);
216void ovl_inode_update(struct inode *inode, struct inode *upperinode);
217void ovl_dentry_version_inc(struct dentry *dentry);
218u64 ovl_dentry_version_get(struct dentry *dentry);
219bool ovl_is_whiteout(struct dentry *dentry);
220struct file *ovl_path_open(struct path *path, int flags);
221int ovl_copy_up_start(struct dentry *dentry);
222void ovl_copy_up_end(struct dentry *dentry);
223bool ovl_check_dir_xattr(struct dentry *dentry, const char *name);

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

257 void *value, size_t size);
258ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size);
259struct posix_acl *ovl_get_acl(struct inode *inode, int type);
260int ovl_open_maybe_copy_up(struct dentry *dentry, unsigned int file_flags);
261int ovl_update_time(struct inode *inode, struct timespec *ts, int flags);
262bool ovl_is_private_xattr(const char *name);
263
264struct inode *ovl_new_inode(struct super_block *sb, umode_t mode, dev_t rdev);
215void ovl_inode_update(struct inode *inode, struct inode *upperinode);
216void ovl_dentry_version_inc(struct dentry *dentry);
217u64 ovl_dentry_version_get(struct dentry *dentry);
218bool ovl_is_whiteout(struct dentry *dentry);
219struct file *ovl_path_open(struct path *path, int flags);
220int ovl_copy_up_start(struct dentry *dentry);
221void ovl_copy_up_end(struct dentry *dentry);
222bool ovl_check_dir_xattr(struct dentry *dentry, const char *name);

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

256 void *value, size_t size);
257ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size);
258struct posix_acl *ovl_get_acl(struct inode *inode, int type);
259int ovl_open_maybe_copy_up(struct dentry *dentry, unsigned int file_flags);
260int ovl_update_time(struct inode *inode, struct timespec *ts, int flags);
261bool ovl_is_private_xattr(const char *name);
262
263struct inode *ovl_new_inode(struct super_block *sb, umode_t mode, dev_t rdev);
265struct inode *ovl_get_inode(struct super_block *sb, struct inode *realinode);
264struct inode *ovl_get_inode(struct dentry *dentry);
266static inline void ovl_copyattr(struct inode *from, struct inode *to)
267{
268 to->i_uid = from->i_uid;
269 to->i_gid = from->i_gid;
270 to->i_mode = from->i_mode;
271 to->i_atime = from->i_atime;
272 to->i_mtime = from->i_mtime;
273 to->i_ctime = from->i_ctime;

--- 20 unchanged lines hidden ---
265static inline void ovl_copyattr(struct inode *from, struct inode *to)
266{
267 to->i_uid = from->i_uid;
268 to->i_gid = from->i_gid;
269 to->i_mode = from->i_mode;
270 to->i_atime = from->i_atime;
271 to->i_mtime = from->i_mtime;
272 to->i_ctime = from->i_ctime;

--- 20 unchanged lines hidden ---