Precondition: !d.isSynthetic().
(ctx context.Context, opts *vfs.SetXattrOptions)
| 320 | |
| 321 | // Precondition: !d.isSynthetic(). |
| 322 | func (d *dentry) setXattrImpl(ctx context.Context, opts *vfs.SetXattrOptions) error { |
| 323 | switch it := d.inode.impl.(type) { |
| 324 | case *lisafsInode: |
| 325 | return it.controlFD.SetXattr(ctx, opts.Name, opts.Value, opts.Flags) |
| 326 | case *directfsInode: |
| 327 | return it.setXattr(ctx, opts, d) |
| 328 | default: |
| 329 | panic("unknown inode implementation") |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | // Precondition: !d.isSynthetic(). |
| 334 | func (d *dentry) removeXattrImpl(ctx context.Context, name string) error { |