[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XFS problem



Steffen Engel (Steffen_Engel@pe.maus.de) came up with the following
solution to the XFS problem:

In filesys.c, after

TRACE(("calling mediach(%d)",d));
  r = (int)mediach(d);
TRACE(("mediach(%d) == %d", d, r));


insert:

  /* r = EUNDEV:
   * maybe the drive is not based on Harddisk, so the HDdriver says
   * EUNDEV.
   * Ask the Filesystem for Mediachange.
   * SE 16.08.93
   */
  if (r == EUNDEV)
    {
    TRACE(("request XFS for media change"));
    fs = drives[d];   /* get filesystem associated with drive */
    if (fs)
      if ((*fs->dskchng)(d)) { /* does the fs agree that it changed? */
         drives[d] = 0;
         changedrv(d); /* yes -- do the change */
         return 1;
         }
         else return 0;
    }

I didn't try that yet, but it certainly looks good.

-- 
---------------------------------------------------
Julian F. Reschke, Hensenstr. 142, D-48161 Muenster
 eMail: reschke@math.uni-muenster.de jr@ms.maus.de
___________________________________________________