NetBSD-Bugs archive

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

Re: kern/57145: gmake: *** INTERNAL: readdir: Operation not supported. Stop.



The code is doing:

    open(".")
    lseek(here) -> fails with not supported; should succeed
    read(...)
    lseek(here) -> fails with not supported; should fail with invalid

bad:

  1371   1371 gmake    CALL  __stat50(0x499426,0xbfb07448)
  1371   1371 gmake    NAMI  "."
  1371   1371 gmake    RET   __stat50 0
  1371   1371 gmake    CALL  open(0x499426,0x600004,0xf0)
  1371   1371 gmake    NAMI  "."
  1371   1371 gmake    RET   open 3
  1371   1371 gmake    CALL  __fstatvfs190(3,0xbfb066c0,2)
  1371   1371 gmake    RET   __fstatvfs190 0
  1371   1371 gmake    CALL  lseek(3,0,0,0,1)
  1371   1371 gmake    RET   lseek -1 errno 45 Operation not supported
  1371   1371 gmake    CALL  __getdents30(3,0xbaa98000,0x1000)
  1371   1371 gmake    GIO   fd 3 read 2048 bytes
       ....
  1371   1371 gmake    RET   __getdents30 2048/0x800
  1371   1371 gmake    CALL  lseek(3,0,0,0,1)
  1371   1371 gmake    RET   lseek -1 errno 45 Operation not supported
  1371   1371 gmake    CALL  __getdents30(3,0xbaa98000,0x1000)
  1371   1371 gmake    GIO   fd 3 read 0 bytes
       ""
  1371   1371 gmake    RET   __getdents30 0

Good:

  1487   1487 gmake    CALL  __stat50(0xf7a426,0xbfb9d0dc)
  1487   1487 gmake    NAMI  "."
  1487   1487 gmake    RET   __stat50 0
  1487   1487 gmake    CALL  open(0xf7a426,0x600004,0xf0)
  1487   1487 gmake    NAMI  "."
  1487   1487 gmake    RET   open 3
  1487   1487 gmake    CALL  __fstatvfs190(3,0xbfb9c354,2)
  1487   1487 gmake    RET   __fstatvfs190 0
  1487   1487 gmake    CALL  lseek(3,0,0,0,1)
  1487   1487 gmake    RET   lseek 0
  1487   1487 gmake    CALL  __getdents30(3,0xbb185000,0x1000)
  1487   1487 gmake    GIO   fd 3 read 2048 bytes
   ...
  1487   1487 gmake    RET   __getdents30 2048/0x800
  1487   1487 gmake    CALL  lseek(3,0,0,0,1)
  1487   1487 gmake    RET   lseek -1 errno 22 Invalid argument
  1487   1487 gmake    CALL  __getdents30(3,0xbb185800,0x800)
  1487   1487 gmake    GIO   fd 3 read 0 bytes
       ""
  1487   1487 gmake    RET   __getdents30 0
  1487   1487 gmake    CALL  close(3)


Home | Main Index | Thread Index | Old Index