Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 2000 15:10:51 -0700 (PDT)
From:      Chris Costello <chris@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/miscfs/fdesc fdesc.h fdesc_vnops.c
Message-ID:  <200005112210.PAA76516@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
chris       2000/05/11 15:10:51 PDT

  Modified files:
    sys/miscfs/fdesc     fdesc.h fdesc_vnops.c 
  Log:
  Adapt fdesc to be mounted on /dev/fd and remove fd, stdin, stdout and
  stderr nodes.  More specific items of this patch:
    o Removed support for symbolic links, and the need for
      fdesc_readlink().
    o Put all the code from fdesc_attr() into fdesc_getattr() and removed
      fdesc_attr().  This also made it easier to properly give all nodes
      unique inode numbers.
    o The removal of all non-fd nodes allowed the removal of the fdesc_read(),
      fdesc_write(), and fdesc_ioctl() nodes, since we no longer have nodes
      that get special handling.
    o Correct the component name validity-checking in fdesc_lookup().  It
      previously detected the end of the string by checking for a terminating
      NUL, now it uses cnp->cn_namelen.
    o Handle kqueue files as FIFOs.  This is probably the closest file type
      to represent this type of file there is, and it is unfortunately not
      very representative of a kqueue.  Creation time is not supported by
      kqueue, so ctime, mtime and atime are all set to the current time when
      getattr() was called.
    o Also set st_[mca]time to the current time since there's no data in
      socket structures that can be used to fill this in (FIFOs).
    o Simplify fdesc_readdir() since it only has to report the numbered
      fd nodes.  Add `.' and `..' directory links as well.
    o Remove read bits from directories as they tend to confuse programs
      like tar(1).
  
  Reviewed by:	phk
  Discussed with:	bde (earlier on, not quite review)
  
  Revision  Changes    Path
  1.9       +4 -14     src/sys/miscfs/fdesc/fdesc.h
  1.48      +153 -427  src/sys/miscfs/fdesc/fdesc_vnops.c



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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