Thomas Gleixner | b4d0d23 | 2019-05-20 19:08:01 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
David Howells | d3e3b7ea | 2017-07-06 15:50:27 +0100 | [diff] [blame] | 2 | /* Extended attribute handling for AFS. We use xattrs to get and set metadata |
| 3 | * instead of providing pioctl(). |
| 4 | * |
| 5 | * Copyright (C) 2017 Red Hat, Inc. All Rights Reserved. |
| 6 | * Written by David Howells (dhowells@redhat.com) |
David Howells | d3e3b7ea | 2017-07-06 15:50:27 +0100 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include <linux/slab.h> |
| 10 | #include <linux/fs.h> |
| 11 | #include <linux/xattr.h> |
| 12 | #include "internal.h" |
| 13 | |
David Howells | d3e3b7ea | 2017-07-06 15:50:27 +0100 | [diff] [blame] | 14 | /* |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 15 | * Deal with the result of a successful fetch ACL operation. |
| 16 | */ |
| 17 | static void afs_acl_success(struct afs_operation *op) |
| 18 | { |
| 19 | afs_vnode_commit_status(op, &op->file[0]); |
| 20 | } |
| 21 | |
| 22 | static void afs_acl_put(struct afs_operation *op) |
| 23 | { |
| 24 | kfree(op->acl); |
| 25 | } |
| 26 | |
| 27 | static const struct afs_operation_ops afs_fetch_acl_operation = { |
| 28 | .issue_afs_rpc = afs_fs_fetch_acl, |
| 29 | .success = afs_acl_success, |
| 30 | .put = afs_acl_put, |
| 31 | }; |
| 32 | |
| 33 | /* |
David Howells | 260f082 | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 34 | * Get a file's ACL. |
| 35 | */ |
| 36 | static int afs_xattr_get_acl(const struct xattr_handler *handler, |
| 37 | struct dentry *dentry, |
| 38 | struct inode *inode, const char *name, |
| 39 | void *buffer, size_t size) |
| 40 | { |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 41 | struct afs_operation *op; |
David Howells | 260f082 | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 42 | struct afs_vnode *vnode = AFS_FS_I(inode); |
| 43 | struct afs_acl *acl = NULL; |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 44 | int ret; |
David Howells | a58823a | 2019-05-09 15:16:10 +0100 | [diff] [blame] | 45 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 46 | op = afs_alloc_operation(NULL, vnode->volume); |
| 47 | if (IS_ERR(op)) |
| 48 | return -ENOMEM; |
David Howells | 260f082 | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 49 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 50 | afs_op_set_vnode(op, 0, vnode); |
| 51 | op->ops = &afs_fetch_acl_operation; |
David Howells | 260f082 | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 52 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 53 | afs_begin_vnode_operation(op); |
| 54 | afs_wait_for_operation(op); |
| 55 | acl = op->acl; |
| 56 | op->acl = NULL; |
| 57 | ret = afs_put_operation(op); |
David Howells | 260f082 | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 58 | |
| 59 | if (ret == 0) { |
| 60 | ret = acl->size; |
| 61 | if (size > 0) { |
David Howells | cc1dd5c | 2019-05-12 08:05:10 +0100 | [diff] [blame] | 62 | if (acl->size <= size) |
| 63 | memcpy(buffer, acl->data, acl->size); |
| 64 | else |
Dan Carpenter | 248c944 | 2020-08-24 11:58:12 +0300 | [diff] [blame] | 65 | ret = -ERANGE; |
David Howells | 260f082 | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 66 | } |
David Howells | 260f082 | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 67 | } |
| 68 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 69 | kfree(acl); |
David Howells | 260f082 | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 70 | return ret; |
| 71 | } |
| 72 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 73 | static bool afs_make_acl(struct afs_operation *op, |
| 74 | const void *buffer, size_t size) |
| 75 | { |
| 76 | struct afs_acl *acl; |
| 77 | |
| 78 | acl = kmalloc(sizeof(*acl) + size, GFP_KERNEL); |
| 79 | if (!acl) { |
| 80 | afs_op_nomem(op); |
| 81 | return false; |
| 82 | } |
| 83 | |
| 84 | acl->size = size; |
| 85 | memcpy(acl->data, buffer, size); |
| 86 | op->acl = acl; |
| 87 | return true; |
| 88 | } |
| 89 | |
| 90 | static const struct afs_operation_ops afs_store_acl_operation = { |
| 91 | .issue_afs_rpc = afs_fs_store_acl, |
| 92 | .success = afs_acl_success, |
| 93 | .put = afs_acl_put, |
| 94 | }; |
| 95 | |
Joe Gorse | b10494a | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 96 | /* |
| 97 | * Set a file's AFS3 ACL. |
| 98 | */ |
| 99 | static int afs_xattr_set_acl(const struct xattr_handler *handler, |
Christian Brauner | e65ce2a | 2021-01-21 14:19:27 +0100 | [diff] [blame] | 100 | struct user_namespace *mnt_userns, |
Joe Gorse | b10494a | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 101 | struct dentry *dentry, |
| 102 | struct inode *inode, const char *name, |
| 103 | const void *buffer, size_t size, int flags) |
| 104 | { |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 105 | struct afs_operation *op; |
Joe Gorse | b10494a | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 106 | struct afs_vnode *vnode = AFS_FS_I(inode); |
Joe Gorse | b10494a | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 107 | |
| 108 | if (flags == XATTR_CREATE) |
| 109 | return -EINVAL; |
| 110 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 111 | op = afs_alloc_operation(NULL, vnode->volume); |
| 112 | if (IS_ERR(op)) |
| 113 | return -ENOMEM; |
Joe Gorse | b10494a | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 114 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 115 | afs_op_set_vnode(op, 0, vnode); |
| 116 | if (!afs_make_acl(op, buffer, size)) |
| 117 | return afs_put_operation(op); |
David Howells | a58823a | 2019-05-09 15:16:10 +0100 | [diff] [blame] | 118 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 119 | op->ops = &afs_store_acl_operation; |
| 120 | return afs_do_sync_operation(op); |
Joe Gorse | b10494a | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 121 | } |
| 122 | |
David Howells | 260f082 | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 123 | static const struct xattr_handler afs_xattr_afs_acl_handler = { |
Joe Gorse | b10494a | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 124 | .name = "afs.acl", |
| 125 | .get = afs_xattr_get_acl, |
| 126 | .set = afs_xattr_set_acl, |
David Howells | 260f082 | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 127 | }; |
| 128 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 129 | static const struct afs_operation_ops yfs_fetch_opaque_acl_operation = { |
| 130 | .issue_yfs_rpc = yfs_fs_fetch_opaque_acl, |
| 131 | .success = afs_acl_success, |
| 132 | /* Don't free op->yacl in .put here */ |
| 133 | }; |
| 134 | |
David Howells | 260f082 | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 135 | /* |
David Howells | ae46578 | 2019-04-30 18:30:21 +0100 | [diff] [blame] | 136 | * Get a file's YFS ACL. |
| 137 | */ |
| 138 | static int afs_xattr_get_yfs(const struct xattr_handler *handler, |
| 139 | struct dentry *dentry, |
| 140 | struct inode *inode, const char *name, |
| 141 | void *buffer, size_t size) |
| 142 | { |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 143 | struct afs_operation *op; |
David Howells | ae46578 | 2019-04-30 18:30:21 +0100 | [diff] [blame] | 144 | struct afs_vnode *vnode = AFS_FS_I(inode); |
| 145 | struct yfs_acl *yacl = NULL; |
David Howells | ae46578 | 2019-04-30 18:30:21 +0100 | [diff] [blame] | 146 | char buf[16], *data; |
David Howells | 773e0c4 | 2019-05-12 08:31:23 +0100 | [diff] [blame] | 147 | int which = 0, dsize, ret = -ENOMEM; |
David Howells | ae46578 | 2019-04-30 18:30:21 +0100 | [diff] [blame] | 148 | |
| 149 | if (strcmp(name, "acl") == 0) |
| 150 | which = 0; |
| 151 | else if (strcmp(name, "acl_inherited") == 0) |
| 152 | which = 1; |
| 153 | else if (strcmp(name, "acl_num_cleaned") == 0) |
| 154 | which = 2; |
| 155 | else if (strcmp(name, "vol_acl") == 0) |
| 156 | which = 3; |
| 157 | else |
| 158 | return -EOPNOTSUPP; |
| 159 | |
David Howells | 773e0c4 | 2019-05-12 08:31:23 +0100 | [diff] [blame] | 160 | yacl = kzalloc(sizeof(struct yfs_acl), GFP_KERNEL); |
| 161 | if (!yacl) |
| 162 | goto error; |
| 163 | |
David Howells | ae46578 | 2019-04-30 18:30:21 +0100 | [diff] [blame] | 164 | if (which == 0) |
David Howells | 773e0c4 | 2019-05-12 08:31:23 +0100 | [diff] [blame] | 165 | yacl->flags |= YFS_ACL_WANT_ACL; |
David Howells | ae46578 | 2019-04-30 18:30:21 +0100 | [diff] [blame] | 166 | else if (which == 3) |
David Howells | 773e0c4 | 2019-05-12 08:31:23 +0100 | [diff] [blame] | 167 | yacl->flags |= YFS_ACL_WANT_VOL_ACL; |
David Howells | ae46578 | 2019-04-30 18:30:21 +0100 | [diff] [blame] | 168 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 169 | op = afs_alloc_operation(NULL, vnode->volume); |
| 170 | if (IS_ERR(op)) |
David Howells | a58823a | 2019-05-09 15:16:10 +0100 | [diff] [blame] | 171 | goto error_yacl; |
| 172 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 173 | afs_op_set_vnode(op, 0, vnode); |
| 174 | op->yacl = yacl; |
| 175 | op->ops = &yfs_fetch_opaque_acl_operation; |
David Howells | ae46578 | 2019-04-30 18:30:21 +0100 | [diff] [blame] | 176 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 177 | afs_begin_vnode_operation(op); |
| 178 | afs_wait_for_operation(op); |
| 179 | ret = afs_put_operation(op); |
David Howells | a58823a | 2019-05-09 15:16:10 +0100 | [diff] [blame] | 180 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 181 | if (ret == 0) { |
| 182 | switch (which) { |
| 183 | case 0: |
| 184 | data = yacl->acl->data; |
| 185 | dsize = yacl->acl->size; |
| 186 | break; |
| 187 | case 1: |
| 188 | data = buf; |
| 189 | dsize = scnprintf(buf, sizeof(buf), "%u", yacl->inherit_flag); |
| 190 | break; |
| 191 | case 2: |
| 192 | data = buf; |
| 193 | dsize = scnprintf(buf, sizeof(buf), "%u", yacl->num_cleaned); |
| 194 | break; |
| 195 | case 3: |
| 196 | data = yacl->vol_acl->data; |
| 197 | dsize = yacl->vol_acl->size; |
| 198 | break; |
| 199 | default: |
| 200 | ret = -EOPNOTSUPP; |
| 201 | goto error_yacl; |
David Howells | ae46578 | 2019-04-30 18:30:21 +0100 | [diff] [blame] | 202 | } |
| 203 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 204 | ret = dsize; |
| 205 | if (size > 0) { |
| 206 | if (dsize <= size) |
| 207 | memcpy(buffer, data, dsize); |
| 208 | else |
| 209 | ret = -ERANGE; |
David Howells | 773e0c4 | 2019-05-12 08:31:23 +0100 | [diff] [blame] | 210 | } |
David Howells | 64fcbb6 | 2021-03-02 10:26:45 +0000 | [diff] [blame] | 211 | } else if (ret == -ENOTSUPP) { |
| 212 | ret = -ENODATA; |
David Howells | 773e0c4 | 2019-05-12 08:31:23 +0100 | [diff] [blame] | 213 | } |
| 214 | |
David Howells | 773e0c4 | 2019-05-12 08:31:23 +0100 | [diff] [blame] | 215 | error_yacl: |
| 216 | yfs_free_opaque_acl(yacl); |
| 217 | error: |
David Howells | ae46578 | 2019-04-30 18:30:21 +0100 | [diff] [blame] | 218 | return ret; |
| 219 | } |
| 220 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 221 | static const struct afs_operation_ops yfs_store_opaque_acl2_operation = { |
| 222 | .issue_yfs_rpc = yfs_fs_store_opaque_acl2, |
| 223 | .success = afs_acl_success, |
David Howells | f4c7914 | 2020-11-03 16:33:07 +0000 | [diff] [blame] | 224 | .put = afs_acl_put, |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 225 | }; |
| 226 | |
David Howells | f5e4546 | 2019-05-01 14:05:27 +0100 | [diff] [blame] | 227 | /* |
| 228 | * Set a file's YFS ACL. |
| 229 | */ |
| 230 | static int afs_xattr_set_yfs(const struct xattr_handler *handler, |
Christian Brauner | e65ce2a | 2021-01-21 14:19:27 +0100 | [diff] [blame] | 231 | struct user_namespace *mnt_userns, |
David Howells | f5e4546 | 2019-05-01 14:05:27 +0100 | [diff] [blame] | 232 | struct dentry *dentry, |
| 233 | struct inode *inode, const char *name, |
| 234 | const void *buffer, size_t size, int flags) |
| 235 | { |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 236 | struct afs_operation *op; |
David Howells | f5e4546 | 2019-05-01 14:05:27 +0100 | [diff] [blame] | 237 | struct afs_vnode *vnode = AFS_FS_I(inode); |
David Howells | 64fcbb6 | 2021-03-02 10:26:45 +0000 | [diff] [blame] | 238 | int ret; |
David Howells | f5e4546 | 2019-05-01 14:05:27 +0100 | [diff] [blame] | 239 | |
| 240 | if (flags == XATTR_CREATE || |
| 241 | strcmp(name, "acl") != 0) |
| 242 | return -EINVAL; |
| 243 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 244 | op = afs_alloc_operation(NULL, vnode->volume); |
| 245 | if (IS_ERR(op)) |
| 246 | return -ENOMEM; |
David Howells | f5e4546 | 2019-05-01 14:05:27 +0100 | [diff] [blame] | 247 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 248 | afs_op_set_vnode(op, 0, vnode); |
| 249 | if (!afs_make_acl(op, buffer, size)) |
| 250 | return afs_put_operation(op); |
David Howells | f5e4546 | 2019-05-01 14:05:27 +0100 | [diff] [blame] | 251 | |
David Howells | e49c7b2 | 2020-04-10 20:51:51 +0100 | [diff] [blame] | 252 | op->ops = &yfs_store_opaque_acl2_operation; |
David Howells | 64fcbb6 | 2021-03-02 10:26:45 +0000 | [diff] [blame] | 253 | ret = afs_do_sync_operation(op); |
| 254 | if (ret == -ENOTSUPP) |
| 255 | ret = -ENODATA; |
| 256 | return ret; |
David Howells | f5e4546 | 2019-05-01 14:05:27 +0100 | [diff] [blame] | 257 | } |
| 258 | |
David Howells | ae46578 | 2019-04-30 18:30:21 +0100 | [diff] [blame] | 259 | static const struct xattr_handler afs_xattr_yfs_handler = { |
| 260 | .prefix = "afs.yfs.", |
| 261 | .get = afs_xattr_get_yfs, |
David Howells | f5e4546 | 2019-05-01 14:05:27 +0100 | [diff] [blame] | 262 | .set = afs_xattr_set_yfs, |
David Howells | ae46578 | 2019-04-30 18:30:21 +0100 | [diff] [blame] | 263 | }; |
| 264 | |
| 265 | /* |
David Howells | d3e3b7ea | 2017-07-06 15:50:27 +0100 | [diff] [blame] | 266 | * Get the name of the cell on which a file resides. |
| 267 | */ |
| 268 | static int afs_xattr_get_cell(const struct xattr_handler *handler, |
| 269 | struct dentry *dentry, |
| 270 | struct inode *inode, const char *name, |
| 271 | void *buffer, size_t size) |
| 272 | { |
| 273 | struct afs_vnode *vnode = AFS_FS_I(inode); |
| 274 | struct afs_cell *cell = vnode->volume->cell; |
| 275 | size_t namelen; |
| 276 | |
David Howells | 989782d | 2017-11-02 15:27:50 +0000 | [diff] [blame] | 277 | namelen = cell->name_len; |
David Howells | d3e3b7ea | 2017-07-06 15:50:27 +0100 | [diff] [blame] | 278 | if (size == 0) |
| 279 | return namelen; |
| 280 | if (namelen > size) |
| 281 | return -ERANGE; |
David Howells | c73aa41 | 2019-05-01 13:27:09 +0100 | [diff] [blame] | 282 | memcpy(buffer, cell->name, namelen); |
David Howells | d3e3b7ea | 2017-07-06 15:50:27 +0100 | [diff] [blame] | 283 | return namelen; |
| 284 | } |
| 285 | |
| 286 | static const struct xattr_handler afs_xattr_afs_cell_handler = { |
| 287 | .name = "afs.cell", |
| 288 | .get = afs_xattr_get_cell, |
| 289 | }; |
| 290 | |
| 291 | /* |
| 292 | * Get the volume ID, vnode ID and vnode uniquifier of a file as a sequence of |
| 293 | * hex numbers separated by colons. |
| 294 | */ |
| 295 | static int afs_xattr_get_fid(const struct xattr_handler *handler, |
| 296 | struct dentry *dentry, |
| 297 | struct inode *inode, const char *name, |
| 298 | void *buffer, size_t size) |
| 299 | { |
| 300 | struct afs_vnode *vnode = AFS_FS_I(inode); |
David Howells | a2f611a | 2019-05-01 15:58:24 +0100 | [diff] [blame] | 301 | char text[16 + 1 + 24 + 1 + 8 + 1]; |
David Howells | d3e3b7ea | 2017-07-06 15:50:27 +0100 | [diff] [blame] | 302 | size_t len; |
| 303 | |
David Howells | a2f611a | 2019-05-01 15:58:24 +0100 | [diff] [blame] | 304 | /* The volume ID is 64-bit, the vnode ID is 96-bit and the |
| 305 | * uniquifier is 32-bit. |
| 306 | */ |
Mark Salyzyn | 2e2fae9 | 2019-11-21 09:12:17 +0000 | [diff] [blame] | 307 | len = scnprintf(text, sizeof(text), "%llx:", vnode->fid.vid); |
David Howells | a2f611a | 2019-05-01 15:58:24 +0100 | [diff] [blame] | 308 | if (vnode->fid.vnode_hi) |
Mark Salyzyn | 2e2fae9 | 2019-11-21 09:12:17 +0000 | [diff] [blame] | 309 | len += scnprintf(text + len, sizeof(text) - len, "%x%016llx", |
| 310 | vnode->fid.vnode_hi, vnode->fid.vnode); |
David Howells | a2f611a | 2019-05-01 15:58:24 +0100 | [diff] [blame] | 311 | else |
Mark Salyzyn | 2e2fae9 | 2019-11-21 09:12:17 +0000 | [diff] [blame] | 312 | len += scnprintf(text + len, sizeof(text) - len, "%llx", |
| 313 | vnode->fid.vnode); |
| 314 | len += scnprintf(text + len, sizeof(text) - len, ":%x", |
| 315 | vnode->fid.unique); |
David Howells | a2f611a | 2019-05-01 15:58:24 +0100 | [diff] [blame] | 316 | |
David Howells | d3e3b7ea | 2017-07-06 15:50:27 +0100 | [diff] [blame] | 317 | if (size == 0) |
| 318 | return len; |
| 319 | if (len > size) |
| 320 | return -ERANGE; |
| 321 | memcpy(buffer, text, len); |
| 322 | return len; |
| 323 | } |
| 324 | |
| 325 | static const struct xattr_handler afs_xattr_afs_fid_handler = { |
| 326 | .name = "afs.fid", |
| 327 | .get = afs_xattr_get_fid, |
| 328 | }; |
| 329 | |
| 330 | /* |
| 331 | * Get the name of the volume on which a file resides. |
| 332 | */ |
| 333 | static int afs_xattr_get_volume(const struct xattr_handler *handler, |
| 334 | struct dentry *dentry, |
| 335 | struct inode *inode, const char *name, |
| 336 | void *buffer, size_t size) |
| 337 | { |
| 338 | struct afs_vnode *vnode = AFS_FS_I(inode); |
David Howells | d2ddc77 | 2017-11-02 15:27:50 +0000 | [diff] [blame] | 339 | const char *volname = vnode->volume->name; |
David Howells | d3e3b7ea | 2017-07-06 15:50:27 +0100 | [diff] [blame] | 340 | size_t namelen; |
| 341 | |
| 342 | namelen = strlen(volname); |
| 343 | if (size == 0) |
| 344 | return namelen; |
| 345 | if (namelen > size) |
| 346 | return -ERANGE; |
David Howells | c73aa41 | 2019-05-01 13:27:09 +0100 | [diff] [blame] | 347 | memcpy(buffer, volname, namelen); |
David Howells | d3e3b7ea | 2017-07-06 15:50:27 +0100 | [diff] [blame] | 348 | return namelen; |
| 349 | } |
| 350 | |
| 351 | static const struct xattr_handler afs_xattr_afs_volume_handler = { |
| 352 | .name = "afs.volume", |
| 353 | .get = afs_xattr_get_volume, |
| 354 | }; |
| 355 | |
| 356 | const struct xattr_handler *afs_xattr_handlers[] = { |
David Howells | 260f082 | 2019-04-25 14:26:52 +0100 | [diff] [blame] | 357 | &afs_xattr_afs_acl_handler, |
David Howells | d3e3b7ea | 2017-07-06 15:50:27 +0100 | [diff] [blame] | 358 | &afs_xattr_afs_cell_handler, |
| 359 | &afs_xattr_afs_fid_handler, |
| 360 | &afs_xattr_afs_volume_handler, |
David Howells | ae46578 | 2019-04-30 18:30:21 +0100 | [diff] [blame] | 361 | &afs_xattr_yfs_handler, /* afs.yfs. prefix */ |
David Howells | d3e3b7ea | 2017-07-06 15:50:27 +0100 | [diff] [blame] | 362 | NULL |
| 363 | }; |