Mageia Bugzilla – Attachment 2282 Details for
Bug 207
can't mount NFS servers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch to add information to NFS GUI
patch-add_info_to_smbnfs_gtk (text/plain), 1.60 KB, created by
Derek Jennings
on 2012-05-12 16:58:28 CEST
(
hide
)
Description:
Patch to add information to NFS GUI
Filename:
MIME Type:
Creator:
Derek Jennings
Created:
2012-05-12 16:58:28 CEST
Size:
1.60 KB
patch
obsolete
>--- /usr/lib/libDrakX/diskdrake/smbnfs_gtk.pm 2011-05-26 22:57:49.000000000 +0100 >+++ smbnfs_gtk.pm 2012-05-12 14:33:10.000000000 +0100 >@@ -16,6 +16,7 @@ > > sub main { > ($in, $all_hds, my $type) = @_; >+ my $message = ""; > my ($kind) = $type eq 'smb' ? smb2kind() : nfs2kind(); > $kind->check($in) or return; > >@@ -58,7 +59,7 @@ > > sub per_entry_info_box { > my ($box, $kind, $entry) = @_; >- my $info = $entry ? diskdrake::interactive::format_raw_hd_info($entry) : ''; >+ my $info = $entry ? diskdrake::interactive::format_raw_hd_info($entry) : $message; > $kind->{per_entry_info_box}->destroy if $kind->{per_entry_info_box}; > gtkpack($box, $kind->{per_entry_info_box} = gtknew('Frame', text => N("Details"), child => gtknew('Label', text => $info, justify => 'left'))); > } >@@ -87,7 +88,7 @@ > : gtknew('Label', text => ""); > } group_by2(@l); > >- gtkadd($box, gtknew('HBox', children_loose => [ @buttons])); >+ gtkadd($box, gtknew('HBox', children_loose => \@buttons)); > } > > sub done { >@@ -249,7 +250,7 @@ > gtknew('VBox', spacing => 7, children => [ > 1, gtknew('HBox', spacing => 7, children_loose => [ > gtkset($kind->{display_box}, width => 200), >- $kind->{info_box}]), >+ $kind->{info_box} ]), > 0, $kind->{action_box}, > ]); > >@@ -260,6 +261,7 @@ > } > > sub nfs2kind() { >+ $message = "\nEnsure firewall is disabled before searching for NFS shares.\nThe firewall may be enabled once shares are discovered."; > fs::remote::nfs->new({ type => 'nfs', name => 'NFS', val => $all_hds->{nfss}, no_auto => 1 }); > } > >@@ -269,3 +271,4 @@ > > > 1; >+
--- /usr/lib/libDrakX/diskdrake/smbnfs_gtk.pm 2011-05-26 22:57:49.000000000 +0100 +++ smbnfs_gtk.pm 2012-05-12 14:33:10.000000000 +0100 @@ -16,6 +16,7 @@ sub main { ($in, $all_hds, my $type) = @_; + my $message = ""; my ($kind) = $type eq 'smb' ? smb2kind() : nfs2kind(); $kind->check($in) or return; @@ -58,7 +59,7 @@ sub per_entry_info_box { my ($box, $kind, $entry) = @_; - my $info = $entry ? diskdrake::interactive::format_raw_hd_info($entry) : ''; + my $info = $entry ? diskdrake::interactive::format_raw_hd_info($entry) : $message; $kind->{per_entry_info_box}->destroy if $kind->{per_entry_info_box}; gtkpack($box, $kind->{per_entry_info_box} = gtknew('Frame', text => N("Details"), child => gtknew('Label', text => $info, justify => 'left'))); } @@ -87,7 +88,7 @@ : gtknew('Label', text => ""); } group_by2(@l); - gtkadd($box, gtknew('HBox', children_loose => [ @buttons])); + gtkadd($box, gtknew('HBox', children_loose => \@buttons)); } sub done { @@ -249,7 +250,7 @@ gtknew('VBox', spacing => 7, children => [ 1, gtknew('HBox', spacing => 7, children_loose => [ gtkset($kind->{display_box}, width => 200), - $kind->{info_box}]), + $kind->{info_box} ]), 0, $kind->{action_box}, ]); @@ -260,6 +261,7 @@ } sub nfs2kind() { + $message = "\nEnsure firewall is disabled before searching for NFS shares.\nThe firewall may be enabled once shares are discovered."; fs::remote::nfs->new({ type => 'nfs', name => 'NFS', val => $all_hds->{nfss}, no_auto => 1 }); } @@ -269,3 +271,4 @@ 1; +
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 207
:
2281
|
2282
|
2315
|
2475
|
2537
|
2779
|
3385