linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the ntfs3 tree with the vfs-idmapping tree
@ 2022-10-03 22:36 Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2022-10-03 22:36 UTC (permalink / raw)
  To: Konstantin Komarov, Christian Brauner, Seth Forshee
  Cc: Christian Brauner (Microsoft),
	Linux Kernel Mailing List, Linux Next Mailing List, Yuan Can

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

Hi all,

Today's linux-next merge of the ntfs3 tree got a conflict in:

  fs/ntfs3/xattr.c

between commit:

  a26aa1238415 ("ntfs3: rework xattr handlers and switch to POSIX ACL VFS helpers")

from the vfs-idmapping tree and commit:

  d45da67caeda ("fs/ntfs3: Use strcmp to determine attribute type")

from the ntfs3 tree.

I fixed it up (I just used the former version) and can carry the fix as
necessary. This is now fixed as far as linux-next is concerned, but any
non trivial conflicts should be mentioned to your upstream maintainer
when your tree is submitted for merging.  You may also want to consider
cooperating with the maintainer of the conflicting tree to minimise any
particularly complex conflicts.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* linux-next: manual merge of the ntfs3 tree with the vfs-idmapping tree
@ 2023-02-15 21:57 Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2023-02-15 21:57 UTC (permalink / raw)
  To: Konstantin Komarov, Christian Brauner, Seth Forshee
  Cc: Christian Brauner, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 4141 bytes --]

Hi all,

Today's linux-next merge of the ntfs3 tree got a conflict in:

  fs/ntfs3/ntfs_fs.h
  fs/ntfs3/xattr.c

between commits:

  77435322777d ("fs: port ->get_acl() to pass mnt_idmap")
  13e83a4923be ("fs: port ->set_acl() to pass mnt_idmap")
  4609e1f18e19 ("fs: port ->permission() to pass mnt_idmap")

from the vfs-idmapping tree and commits:

  d1468d48fe7a ("fs/ntfs3: Remove noacsrules")
  fa578fb1810a ("fs/ntfs3: Changed ntfs_get_acl() to use dentry")

from the ntfs3 tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc fs/ntfs3/ntfs_fs.h
index 80072e5f96f7,9a2d965f183e..000000000000
--- a/fs/ntfs3/ntfs_fs.h
+++ b/fs/ntfs3/ntfs_fs.h
@@@ -858,19 -854,18 +856,18 @@@ unsigned long ntfs_names_hash(const u1
  
  /* globals from xattr.c */
  #ifdef CONFIG_NTFS3_FS_POSIX_ACL
- struct posix_acl *ntfs_get_acl(struct inode *inode, int type, bool rcu);
 -struct posix_acl *ntfs_get_acl(struct user_namespace *mnt_userns,
++struct posix_acl *ntfs_get_acl(struct mnt_idmap *idmap,
+ 			       struct dentry *dentry, int type);
 -int ntfs_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
 +int ntfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
  		 struct posix_acl *acl, int type);
 -int ntfs_init_acl(struct user_namespace *mnt_userns, struct inode *inode,
 +int ntfs_init_acl(struct mnt_idmap *idmap, struct inode *inode,
  		  struct inode *dir);
  #else
  #define ntfs_get_acl NULL
  #define ntfs_set_acl NULL
  #endif
  
 -int ntfs_acl_chmod(struct user_namespace *mnt_userns, struct dentry *dentry);
 +int ntfs_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry);
- int ntfs_permission(struct mnt_idmap *idmap, struct inode *inode,
- 		    int mask);
  ssize_t ntfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
  extern const struct xattr_handler *ntfs_xattr_handlers[];
  
diff --cc fs/ntfs3/xattr.c
index ff64302e87e5,0a6d2ec8c340..000000000000
--- a/fs/ntfs3/xattr.c
+++ b/fs/ntfs3/xattr.c
@@@ -517,9 -520,14 +520,14 @@@ out
  }
  
  #ifdef CONFIG_NTFS3_FS_POSIX_ACL
- static struct posix_acl *ntfs_get_acl_ex(struct inode *inode, int type,
- 					 int locked)
+ 
+ /*
+  * ntfs_get_acl - inode_operations::get_acl
+  */
 -struct posix_acl *ntfs_get_acl(struct user_namespace *mnt_userns,
++struct posix_acl *ntfs_get_acl(struct mnt_idmap *idmap,
+ 			       struct dentry *dentry, int type)
  {
+ 	struct inode *inode = d_inode(dentry);
  	struct ntfs_inode *ni = ntfs_i(inode);
  	const char *name;
  	size_t name_len;
@@@ -567,18 -573,7 +573,7 @@@
  	return acl;
  }
  
- /*
-  * ntfs_get_acl - inode_operations::get_acl
-  */
- struct posix_acl *ntfs_get_acl(struct inode *inode, int type, bool rcu)
- {
- 	if (rcu)
- 		return ERR_PTR(-ECHILD);
- 
- 	return ntfs_get_acl_ex(inode, type, 0);
- }
- 
 -static noinline int ntfs_set_acl_ex(struct user_namespace *mnt_userns,
 +static noinline int ntfs_set_acl_ex(struct mnt_idmap *idmap,
  				    struct inode *inode, struct posix_acl *acl,
  				    int type, bool init_acl)
  {
@@@ -708,23 -703,9 +703,9 @@@ int ntfs_acl_chmod(struct mnt_idmap *id
  	if (S_ISLNK(inode->i_mode))
  		return -EOPNOTSUPP;
  
 -	return posix_acl_chmod(mnt_userns, dentry, inode->i_mode);
 +	return posix_acl_chmod(idmap, dentry, inode->i_mode);
  }
  
- /*
-  * ntfs_permission - inode_operations::permission
-  */
- int ntfs_permission(struct mnt_idmap *idmap, struct inode *inode,
- 		    int mask)
- {
- 	if (ntfs_sb(inode->i_sb)->options->noacsrules) {
- 		/* "No access rules" mode - Allow all changes. */
- 		return 0;
- 	}
- 
- 	return generic_permission(idmap, inode, mask);
- }
- 
  /*
   * ntfs_listxattr - inode_operations::listxattr
   */

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* linux-next: manual merge of the ntfs3 tree with the vfs-idmapping tree
@ 2023-02-15 21:30 Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2023-02-15 21:30 UTC (permalink / raw)
  To: Konstantin Komarov, Christian Brauner, Seth Forshee
  Cc: Christian Brauner, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 1782 bytes --]

Hi all,

Today's linux-next merge of the ntfs3 tree got conflicts in:

  fs/ntfs3/file.c

between commit:

  c1632a0f1120 ("fs: port ->setattr() to pass mnt_idmap")

from the vfs-idmapping tree and commit:

  d1468d48fe7a ("fs/ntfs3: Remove noacsrules")

from the ntfs3 tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc fs/ntfs3/file.c
index e9bdc1ff08c9,a10a905ec7ce..000000000000
--- a/fs/ntfs3/file.c
+++ b/fs/ntfs3/file.c
@@@ -657,26 -653,16 +653,16 @@@ out
  /*
   * ntfs3_setattr - inode_operations::setattr
   */
 -int ntfs3_setattr(struct user_namespace *mnt_userns, struct dentry *dentry,
 +int ntfs3_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
  		  struct iattr *attr)
  {
- 	struct super_block *sb = dentry->d_sb;
- 	struct ntfs_sb_info *sbi = sb->s_fs_info;
  	struct inode *inode = d_inode(dentry);
  	struct ntfs_inode *ni = ntfs_i(inode);
  	u32 ia_valid = attr->ia_valid;
  	umode_t mode = inode->i_mode;
  	int err;
  
- 	if (sbi->options->noacsrules) {
- 		/* "No access rules" - Force any changes of time etc. */
- 		attr->ia_valid |= ATTR_FORCE;
- 		/* and disable for editing some attributes. */
- 		attr->ia_valid &= ~(ATTR_UID | ATTR_GID | ATTR_MODE);
- 		ia_valid = attr->ia_valid;
- 	}
- 
 -	err = setattr_prepare(mnt_userns, dentry, attr);
 +	err = setattr_prepare(idmap, dentry, attr);
  	if (err)
  		goto out;
  

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-15 21:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-03 22:36 linux-next: manual merge of the ntfs3 tree with the vfs-idmapping tree Stephen Rothwell
2023-02-15 21:30 Stephen Rothwell
2023-02-15 21:57 Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).