Files
mirror_zfs/cmd
Andriy Gapon 778869fa13 Fix report_mount_progress never calling set_progress_header
That happens because of an off-by-one mistake.
share_mount_one_cb() calls report_mount_progress(current=sm_done) after
having incremented sm_done by one.  Then report_mount_progress()
increments the parameter again.  It appears that that logic became
obsolete after commit a10d50f999, parallel zfs mount.

On FreeBSD I observe that zfs mount -a -v prints, for example,
    (null): (201/248)
That happens because set_progress_header() is never called.

With this change the output becomes correct:
    Mounting ZFS filesystems: (209/248)

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Andriy Gapon <avg@FreeBSD.org>
Closes #11607
2021-02-18 13:53:05 -08:00
..
2019-08-30 09:43:30 -07:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00