freebsd-dev/cmd/zfs
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
..
.gitignore
Makefile.am cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
zfs_iter.c Fix dataset name comparison in zfs_compare() 2019-05-08 16:42:39 -07:00
zfs_iter.h
zfs_main.c Fix report_mount_progress never calling set_progress_header 2021-02-18 13:53:05 -08:00
zfs_project.c
zfs_projectutil.h
zfs_util.h Fix static data to link with -fno-common 2020-02-06 09:25:29 -08:00