Re: [PATCH v4 2/2] ceph: add ceph.{cluster_fsid/client_id} vxattrs suppport

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2020/11/14 3:40, Patrick Donnelly wrote:
On Tue, Nov 10, 2020 at 5:29 PM <xiubli@xxxxxxxxxx> wrote:
[...]
  static struct ceph_vxattr *ceph_inode_vxattrs(struct inode *inode)
  {
         if (S_ISDIR(inode->i_mode))
@@ -429,6 +464,13 @@ static struct ceph_vxattr *ceph_match_vxattr(struct inode *inode,
                 }
         }

+       vxattr = ceph_common_vxattrs;
+       while (vxattr->name) {
+               if (!strcmp(vxattr->name, name))
+                       return vxattr;
+               vxattr++;
+       }
+
         return NULL;
  }
Please also be sure to wire up the same vxattrs in the userspace Client.


Sure, will do.

Thanks.




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Ceph Dev]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux