Home
last modified time | relevance | path

Searched refs:tdslen (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_diff.c559 int tdslen, tsnlen; in get_snapshot_names() local
600 tdslen = atptrt ? atptrt - tosnap : strlen(tosnap); in get_snapshot_names()
602 tsnlen = strlen(tosnap) - tdslen; /* includes @ sign */ in get_snapshot_names()
604 if (fsnlen <= 1 || tsnlen == 1 || (fdslen == 0 && tdslen == 0) || in get_snapshot_names()
607 } else if ((fdslen > 0 && tdslen > 0) && in get_snapshot_names()
608 ((tdslen != fdslen || strncmp(fromsnap, tosnap, fdslen) != 0))) { in get_snapshot_names()
617 di->ds = zfs_alloc(di->zhp->zfs_hdl, tdslen + 1); in get_snapshot_names()
618 (void) strncpy(di->ds, tosnap, tdslen); in get_snapshot_names()
619 di->ds[tdslen] = '\0'; in get_snapshot_names()
653 int dslen = fdslen ? fdslen : tdslen; in get_snapshot_names()