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