All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Marxmeier <mike@msede.com>
To: linux-lvm@msede.com
Subject: [linux-lvm] lvm_proc_get_info()
Date: Wed, 31 Mar 1999 20:37:21 +0200	[thread overview]
Message-ID: <37026B61.F8064BFA@msede.com> (raw)

There is a minor problem in lvm.c / lvm_proc_get_info()

lvm_proc_get_info() returns -1 on EOF which results in a bogus EPERM 
returned to user mode. Try a cat /proc/lvm to see the effect.
Returning 0 should indicate the EOF condition.

Trivial patch against 0.6 is below. Obviously this also needs to
be applied against linux/drivers/block/lvm.c


Michael


--- /usr/src/LVM/0.6/kernel/lvm.c       Fri Feb 26 01:46:28 1999
+++ lvm.c       Wed Mar 31 10:28:30 1999
@@ -1675,7 +1675,7 @@
    if ( pos > sz - 1) {
       vfree ( buf);
       buf = NULL;
-      return -1;
+      return 0;
    }
 
    *start = &buf[pos];

-- 
Michael Marxmeier           Marxmeier Software GmbH
E-Mail: mike@msede.com      Besenbruchstrasse 9
Voice : +49 202 2431440     42285 Wuppertal, Germany
Fax   : +49 202 2431420     http://www.msede.com/

                 reply	other threads:[~1999-03-31 18:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=37026B61.F8064BFA@msede.com \
    --to=mike@msede.com \
    --cc=linux-lvm@msede.com \
    /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.