home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 7076 < prev    next >
Encoding:
Text File  |  1992-07-30  |  2.1 KB  |  52 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!chx400!bernina!almesber
  3. From: almesber@nessie.cs.id.ethz.ch (Werner Almesberger)
  4. Subject: Re: mrphmpmmmph shoelace and partitions
  5. Message-ID: <1992Jul30.234420.23621@bernina.ethz.ch>
  6. Sender: news@bernina.ethz.ch (USENET News System)
  7. Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
  8. References: <1992Jul24.021543.24526@sol.UVic.CA> <1992Jul24.143547.23391@crd.ge.com> <1992Jul25.210010.4405@bernina.ethz.ch>
  9. Date: Thu, 30 Jul 1992 23:44:20 GMT
  10. Lines: 40
  11.  
  12. In article <1992Jul25.210010.4405@bernina.ethz.ch> I wrote:
  13. > I've had this sitting around for a long time. A patch I've originally
  14. > made for 0.96c-pl1 and that seems to work unmodified for 0.96c-pl2 is
  15. > at the end of this posting.
  16.  
  17. Well, "seems" was the right word. The last time I've tested it was with
  18. 0.96b and a silly bug made it into the hasty upgrade to 0.96c-pl1. The
  19. patch at the end of this posting should fix it. (Untested - I don't have
  20. an original 0.96c-pl2 kernel on my PC.) I'll make a cleaner (and
  21. thoroughly tested) patch when the next "official" kernel patch is out,
  22. so if you can wait for this, please do.
  23.  
  24. - Werner
  25.  
  26. ---------------------------------- cut here -----------------------------------
  27.  
  28. *** super.orig    Thu Jul 30 23:55:54 1992
  29. --- super.c    Thu Jul 30 23:59:24 1992
  30. ***************
  31. *** 274,280 ****
  32.           if (!S_ISREG(inode->i_mode)) retval = -EPERM;
  33.           else if ((dev = loop_getdev(inode)) < 0) retval = dev;
  34.         }
  35. !     iput(inode);
  36.       if (retval)
  37.           return retval;
  38.       if ((new_flags & 0xffff0000) == 0xC0ED0000) {
  39. --- 274,280 ----
  40.           if (!S_ISREG(inode->i_mode)) retval = -EPERM;
  41.           else if ((dev = loop_getdev(inode)) < 0) retval = dev;
  42.         }
  43. !     if (retval || MAJOR(dev) != LOOP_MAJOR) iput(inode);
  44.       if (retval)
  45.           return retval;
  46.       if ((new_flags & 0xffff0000) == 0xC0ED0000) {
  47. -- 
  48.    _________________________________________________________________________
  49.   / Werner Almesberger, ETH Zuerich, CH      almesber@nessie.cs.id.ethz.ch /
  50.  / IFW A44  Tel. +41 1 254 7213                 almesberger@rzvax.ethz.ch /
  51. /_BITNET:_ALMESBER@CZHETH5A__HEPNET/CHADNET:_[20579::]57414::ALMESBERGER_/
  52.