summaryrefslogtreecommitdiff
path: root/shares-conf.in
diff options
context:
space:
mode:
authorhansp <hansp>2001-01-11 20:48:46 +0000
committerhansp <hansp>2001-01-11 20:48:46 +0000
commit31a7095d3f188cc91647ee47d457951a257c58e0 (patch)
treea0cbd35d8005ea702c7373f3867e87dac4922dd6 /shares-conf.in
parent71d51ff429243bb78153072a3e8f7e70e1f65451 (diff)
Added sensible progress output on --set.
Diffstat (limited to 'shares-conf.in')
-rwxr-xr-xshares-conf.in14
1 files changed, 11 insertions, 3 deletions
diff --git a/shares-conf.in b/shares-conf.in
index e55e210..bcf5689 100755
--- a/shares-conf.in
+++ b/shares-conf.in
@@ -1834,6 +1834,7 @@ sub set_immediate
# Update exports.
be_service_restart(80, "-D", "samba", "smb", "smbd");
+ be_progress(60);
if ($exportfs_tool eq "")
{
@@ -1845,8 +1846,12 @@ sub set_immediate
be_report_info(12, "NFS export tables reloaded");
}
+ be_progress(80);
+
# Update imports.
+ my $num_done = 0;
+
if (($mount_tool ne "") && ($umount_tool ne ""))
{
my @shares = @cf_shares_list;
@@ -1870,6 +1875,9 @@ sub set_immediate
shift @shares; shift @shares; shift @shares; shift @shares; shift @shares;
shift @shares; shift @shares; shift @shares; shift @shares; shift @shares;
shift @shares;
+
+ $num_done++;
+ be_progress(80 + (20 / ((($#cf_shares_list + 1) / 11) - $num_done + 1)));
}
}
else
@@ -1883,9 +1891,9 @@ sub set
{
xml_parse ();
- write_fstab;
- write_exports;
- write_smb_conf;
+ write_fstab; be_progress(10);
+ write_exports; be_progress(20);
+ write_smb_conf; be_progress(30);
if ($be_do_immediate)
{