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

Jung-uk Kim jkim at FreeBSD.org
Mon Dec 4 14:45:47 PST 2006


jkim        2006-12-04 22:38:52 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/linux     linux_stats.c 
  Log:
  MFP4: 109652
  
  Fixes for 'blocking in fifoor state' problem of LTP tests.
  linux_*stat*() functions were opening files with O_RDONLY to get
  major/minor pair for char/block special files.  Unfortunately,
  when these functions are used against fifo, it is blocked forever
  because there is no writer.  Instead, we only open char/block special
  files for major/minor conversion.  We have to get rid of kern_open()
  entirely from translate_path_major_minor() but today is not the day.
  While I am here, add checks for errors before calling
  translate_path_major_minor().
  
  Revision  Changes    Path
  1.86      +38 -39    src/sys/compat/linux/linux_stats.c


More information about the cvs-all mailing list