Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2011 12:19:25 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/compat/linux linux_file.c
Message-ID:  <201101191219.p0JCJbcc054023@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2011-01-19 12:19:25 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/linux     linux_file.c 
  Log:
  SVN rev 217578 on 2011-01-19 12:19:25Z by kib
  
  In linuxolator getdents_common(), it seems there is no reason to loop
  if no records where returned by VOP_READDIR(). Readdir implementations
  allowed to return 0 records when first record is larger then supplied
  buffer. In this case trying to execute VOP_READDIR() again causes the
  syscall looping forewer.
  
  The goto was there from the day 1, which goes back to 1995 year.
  
  Reported and tested by: Beat G?tzi <beat chruetertee ch>
  MFC after:   2 weeks
  
  Revision  Changes    Path
  1.122     +4 -3      src/sys/compat/linux/linux_file.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101191219.p0JCJbcc054023>