cvs commit: src/sys/compat/linux linux_stats.c

Poul-Henning Kamp phk at FreeBSD.org
Tue Feb 22 13:39:47 GMT 2005


phk         2005-02-22 13:39:46 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/linux     linux_stats.c 
  Log:
  Neuter linux_ustat() until somebody finds time to try to fix it.
  
  The fundamental problem is that we get only the lower 8 bits of the
  minor device number so there is no guarantee that we can actually
  find the disk device in question at all.
  
  This was probably a bigger issue pre-GEOM where the upper bits
  signaled which slice were in use.
  
  The secondary problem is how we get from (partial) dev_t to vnode.
  
  The correct implementation will involve traversing the mount list
  looking for a perfect match or a possible match (for truncated
  minor).
  
  Revision  Changes    Path
  1.66      +9 -4      src/sys/compat/linux/linux_stats.c


More information about the cvs-src mailing list