MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zfs_ioc_diff

Function zfs_ioc_diff

freebsd/contrib/openzfs/module/zfs/zfs_ioctl.c:6054–6070  ·  view source on GitHub ↗

* inputs: * zc_name name of "to" snapshot * zc_value name of "from" snapshot * zc_cookie file descriptor to write diff data on * * outputs: * dmu_diff_record_t's to the file descriptor */

Source from the content-addressed store, hash-verified

6052 * dmu_diff_record_t's to the file descriptor
6053 */
6054static int
6055zfs_ioc_diff(zfs_cmd_t *zc)
6056{
6057 zfs_file_t *fp;
6058 offset_t off;
6059 int error;
6060
6061 if ((error = zfs_file_get(zc->zc_cookie, &fp)))
6062 return (error);
6063
6064 off = zfs_file_off(fp);
6065 error = dmu_diff(zc->zc_name, zc->zc_value, fp, &off);
6066
6067 zfs_file_put(zc->zc_cookie);
6068
6069 return (error);
6070}
6071
6072static int
6073zfs_ioc_smb_acl(zfs_cmd_t *zc)

Callers

nothing calls this directly

Calls 4

dmu_diffFunction · 0.85
zfs_file_getFunction · 0.50
zfs_file_offFunction · 0.50
zfs_file_putFunction · 0.50

Tested by

no test coverage detected