[PATCH] qemu-options: Improve description for -smb option

Pali Rohár posted 1 patch 3 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250802110549.23438-1-pali@kernel.org
qemu-options.hx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
[PATCH] qemu-options: Improve description for -smb option
Posted by Pali Rohár 3 months, 2 weeks ago
Add #PRE and #NOFNR flags to LMHOSTS example line.
Include information about LMHOSTS path on Windows 3.x.

Windows NT 3.1 requires #NOFNR flag for successful hostname resolving as
described in MS article Q103765 because qemu/smbd does not respond to
netbios name verification queries. #PRE is suggested in that article too
and decrease delay on Windows 3.x for the first connection.

Signed-off-by: Pali Rohár <pali@kernel.org>
---
 qemu-options.hx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/qemu-options.hx b/qemu-options.hx
index ab23f14d2178..d5654756f125 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -3307,10 +3307,10 @@ SRST
 
         ::
 
-            10.0.2.4 smbserver
+            10.0.2.4 smbserver #PRE #NOFNR
 
-        must be added in the file ``C:\WINDOWS\LMHOSTS`` (for windows
-        9x/Me) or ``C:\WINNT\SYSTEM32\DRIVERS\ETC\LMHOSTS`` (Windows
+        must be added in the file ``C:\WINDOWS\LMHOSTS`` (for Windows
+        3x/9x/Me) or ``C:\WINNT\SYSTEM32\DRIVERS\ETC\LMHOSTS`` (Windows
         NT/2000).
 
         Then ``dir`` can be accessed in ``\\smbserver\qemu``.
-- 
2.20.1


Re: [PATCH] qemu-options: Improve description for -smb option
Posted by Pali Rohár 3 months ago
+cc slirp & network maintainers

On Saturday 02 August 2025 13:05:49 Pali Rohár wrote:
> Add #PRE and #NOFNR flags to LMHOSTS example line.
> Include information about LMHOSTS path on Windows 3.x.
> 
> Windows NT 3.1 requires #NOFNR flag for successful hostname resolving as
> described in MS article Q103765 because qemu/smbd does not respond to
> netbios name verification queries. #PRE is suggested in that article too
> and decrease delay on Windows 3.x for the first connection.
> 
> Signed-off-by: Pali Rohár <pali@kernel.org>
> ---
>  qemu-options.hx | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/qemu-options.hx b/qemu-options.hx
> index ab23f14d2178..d5654756f125 100644
> --- a/qemu-options.hx
> +++ b/qemu-options.hx
> @@ -3307,10 +3307,10 @@ SRST
>  
>          ::
>  
> -            10.0.2.4 smbserver
> +            10.0.2.4 smbserver #PRE #NOFNR
>  
> -        must be added in the file ``C:\WINDOWS\LMHOSTS`` (for windows
> -        9x/Me) or ``C:\WINNT\SYSTEM32\DRIVERS\ETC\LMHOSTS`` (Windows
> +        must be added in the file ``C:\WINDOWS\LMHOSTS`` (for Windows
> +        3x/9x/Me) or ``C:\WINNT\SYSTEM32\DRIVERS\ETC\LMHOSTS`` (Windows
>          NT/2000).
>  
>          Then ``dir`` can be accessed in ``\\smbserver\qemu``.
> -- 
> 2.20.1
> 

Re: [PATCH] qemu-options: Improve description for -smb option
Posted by Pali Rohár 5 days, 15 hours ago
Any comments?

On Sunday 10 August 2025 15:09:48 Pali Rohár wrote:
> +cc slirp & network maintainers
> 
> On Saturday 02 August 2025 13:05:49 Pali Rohár wrote:
> > Add #PRE and #NOFNR flags to LMHOSTS example line.
> > Include information about LMHOSTS path on Windows 3.x.
> > 
> > Windows NT 3.1 requires #NOFNR flag for successful hostname resolving as
> > described in MS article Q103765 because qemu/smbd does not respond to
> > netbios name verification queries. #PRE is suggested in that article too
> > and decrease delay on Windows 3.x for the first connection.
> > 
> > Signed-off-by: Pali Rohár <pali@kernel.org>
> > ---
> >  qemu-options.hx | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> > 
> > diff --git a/qemu-options.hx b/qemu-options.hx
> > index ab23f14d2178..d5654756f125 100644
> > --- a/qemu-options.hx
> > +++ b/qemu-options.hx
> > @@ -3307,10 +3307,10 @@ SRST
> >  
> >          ::
> >  
> > -            10.0.2.4 smbserver
> > +            10.0.2.4 smbserver #PRE #NOFNR
> >  
> > -        must be added in the file ``C:\WINDOWS\LMHOSTS`` (for windows
> > -        9x/Me) or ``C:\WINNT\SYSTEM32\DRIVERS\ETC\LMHOSTS`` (Windows
> > +        must be added in the file ``C:\WINDOWS\LMHOSTS`` (for Windows
> > +        3x/9x/Me) or ``C:\WINNT\SYSTEM32\DRIVERS\ETC\LMHOSTS`` (Windows
> >          NT/2000).
> >  
> >          Then ``dir`` can be accessed in ``\\smbserver\qemu``.
> > -- 
> > 2.20.1
> > 

Re: [PATCH] qemu-options: Improve description for -smb option
Posted by Pali Rohár 2 months, 1 week ago
PING?

On Sunday 10 August 2025 15:09:48 Pali Rohár wrote:
> +cc slirp & network maintainers
> 
> On Saturday 02 August 2025 13:05:49 Pali Rohár wrote:
> > Add #PRE and #NOFNR flags to LMHOSTS example line.
> > Include information about LMHOSTS path on Windows 3.x.
> > 
> > Windows NT 3.1 requires #NOFNR flag for successful hostname resolving as
> > described in MS article Q103765 because qemu/smbd does not respond to
> > netbios name verification queries. #PRE is suggested in that article too
> > and decrease delay on Windows 3.x for the first connection.
> > 
> > Signed-off-by: Pali Rohár <pali@kernel.org>
> > ---
> >  qemu-options.hx | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> > 
> > diff --git a/qemu-options.hx b/qemu-options.hx
> > index ab23f14d2178..d5654756f125 100644
> > --- a/qemu-options.hx
> > +++ b/qemu-options.hx
> > @@ -3307,10 +3307,10 @@ SRST
> >  
> >          ::
> >  
> > -            10.0.2.4 smbserver
> > +            10.0.2.4 smbserver #PRE #NOFNR
> >  
> > -        must be added in the file ``C:\WINDOWS\LMHOSTS`` (for windows
> > -        9x/Me) or ``C:\WINNT\SYSTEM32\DRIVERS\ETC\LMHOSTS`` (Windows
> > +        must be added in the file ``C:\WINDOWS\LMHOSTS`` (for Windows
> > +        3x/9x/Me) or ``C:\WINNT\SYSTEM32\DRIVERS\ETC\LMHOSTS`` (Windows
> >          NT/2000).
> >  
> >          Then ``dir`` can be accessed in ``\\smbserver\qemu``.
> > -- 
> > 2.20.1
> >