All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Dmitry Torokhov <dtor@vmware.com>
Cc: "mingo@redhat.com" <mingo@redhat.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"greg@kroah.com" <greg@kroah.com>,
	"hjanssen@microsoft.com" <hjanssen@microsoft.com>,
	"ksrinivasan@novell.com" <ksrinivasan@novell.com>,
	"tglx@linutronix.de" <tglx@linutronix.de>,
	Alok Kataria <akataria@vmware.com>,
	"linux-tip-commits@vger.kernel.org" 
	<linux-tip-commits@vger.kernel.org>
Subject: Re: [tip:x86/cpu] Modify the VMware balloon driver for the new x86_hyper API
Date: Mon, 10 May 2010 11:05:56 -0700	[thread overview]
Message-ID: <4BE84B04.9050607@zytor.com> (raw)
In-Reply-To: <201005101052.22796.dtor@vmware.com>

On 05/10/2010 10:52 AM, Dmitry Torokhov wrote:
> 
> The usage that you mention only valid in the context of working with
> device nodes. In other cases it can be used to indicate different errors
> altogether:
> 
> mmap:
> 
> [ENODEV]
>     The fildes argument refers to a file whose type is not supported
>     by mmap().
> 
> fallocate:
> 
> [ENODEV]
>     The fd argument does not refer to a regular file.
> 
> Linux mount:
> 
>       ENODEV filesystemtype not configured in the kernel.
> 
>       ENXIO  The major number of the block device source is out of range.
> 

"The major number of the block device source is out of range" is really
nothing but confusion on the part of the man page author.  It's exactly
this kind of confusion which I try to clamp down on, because we have
*so* many instances of it in the existing codebase.  It seems, in fact,
to be one of the most common mistakes

ENXIO really means exactly the same thing as it does elsewhere: no
hardware for the specified device.  For example, create /dev/hda on a
system with no IDE:

mount("/dev/hda", "/mnt", "ext2", MS_MGC_VAL, NULL) = -1 ENXIO (No such
device or address)

[no "out of range" anything there...]

The kernel does indeed return ENODEV for a nonexistent filesystem name,
which can only best be described as "severely confusing", but probably
have to be considered grandfathered in by now.  (mount returns ENOTBLK
for a non-devicenode, which is somewhat accurate -- a non-device is not
a block device, after all...)

	-hpa

  reply	other threads:[~2010-05-10 18:06 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-07 22:43 RFC - Cleaned up hypervisor layer H. Peter Anvin
2010-05-07 23:02 ` Greg KH
2010-05-07 23:08   ` H. Peter Anvin
2010-05-07 23:12     ` Greg KH
2010-05-07 23:18       ` H. Peter Anvin
2010-05-07 23:55         ` [PATCH] HyperV: fix up the license to mshyperv.c Greg KH
2010-05-08  1:58           ` [tip:x86/cpu] x86, " tip-bot for Greg Kroah-Hartman
2010-05-08  1:58 ` [tip:x86/cpu] x86: Clean up the hypervisor layer tip-bot for H. Peter Anvin
2010-05-08  8:16   ` Ingo Molnar
2010-05-19 16:54   ` [PATCH] Hyperv: Export the symbol that tracks hyperv features and recommendations Ky Srinivasan
2010-05-19 17:03     ` Greg KH
2010-05-08  5:54 ` RFC - Cleaned up hypervisor layer Dmitry Torokhov
2010-05-09  8:18 ` [tip:x86/cpu] x86, hypervisor: Export the x86_hyper* symbols tip-bot for H. Peter Anvin
2010-05-09  8:19 ` [tip:x86/cpu] Modify the VMware balloon driver for the new x86_hyper API tip-bot for H. Peter Anvin
2010-05-09  8:20   ` H. Peter Anvin
2010-05-10  8:06     ` Dmitry Torokhov
2010-05-10 15:23       ` H. Peter Anvin
2010-05-10 16:17         ` Dmitry Torokhov
2010-05-10 17:30           ` H. Peter Anvin
2010-05-10 17:52             ` Dmitry Torokhov
2010-05-10 18:05               ` H. Peter Anvin [this message]
2010-05-09 10:47   ` Ingo Molnar
2010-05-10  5:56 ` [tip:x86/cpu] x86, hypervisor: add missing <linux/module.h> tip-bot for H. Peter Anvin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BE84B04.9050607@zytor.com \
    --to=hpa@zytor.com \
    --cc=akataria@vmware.com \
    --cc=dtor@vmware.com \
    --cc=greg@kroah.com \
    --cc=hjanssen@microsoft.com \
    --cc=ksrinivasan@novell.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.