mcoverlayfs: update and compile new overlayfs for 4.18 kernels
This newer version is much simpler than the old ones: - the options are noop, this lets the code simplify all the allocating of a new option struct and passing it around - ovl_reset_ovl_entry was added and called all the time, but the mechanism that made this required is gone in this kernel version On the other hand, one new thing in this version: - newer kernel check the stacking depth of filesystems now, and we are reaching the default limit of two with our setup. Bump it to three here. Also, while we are here, make make fail if requested directory does not exist, instead of infinitely recurse into make modules in the mcoverlayfs directory... Change-Id: I45050d693a0aa6fd3027deaf417c29876ef6a1ea
This commit is contained in:
@@ -22,6 +22,9 @@ int ovl_setattr(struct dentry *dentry, struct iattr *attr)
|
||||
struct dentry *upperdentry;
|
||||
const struct cred *old_cred;
|
||||
|
||||
/* NOCOPYUPW */
|
||||
return 0;
|
||||
|
||||
/*
|
||||
* Check for permissions before trying to copy-up. This is redundant
|
||||
* since it will be rechecked later by ->setattr() on upper dentry. But
|
||||
@@ -277,6 +280,9 @@ int ovl_xattr_set(struct dentry *dentry, struct inode *inode, const char *name,
|
||||
struct dentry *realdentry = upperdentry ?: ovl_dentry_lower(dentry);
|
||||
const struct cred *old_cred;
|
||||
|
||||
/* NOCOPYUPW */
|
||||
return 0;
|
||||
|
||||
err = ovl_want_write(dentry);
|
||||
if (err)
|
||||
goto out;
|
||||
@@ -405,6 +411,9 @@ int ovl_open_maybe_copy_up(struct dentry *dentry, unsigned int file_flags)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
/* NOCOPYUPW */
|
||||
return err;
|
||||
|
||||
if (ovl_open_need_copy_up(dentry, file_flags)) {
|
||||
err = ovl_want_write(dentry);
|
||||
if (!err) {
|
||||
|
||||
Reference in New Issue
Block a user