httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@ibm.net>
Subject Re: cvs commit: apache-2.0/src/lib/apr/file_io/win32 filestat.c
Date Tue, 20 Jun 2000 10:54:42 GMT
> From: "William A. Rowe, Jr." <wrowe@lnd.com>
> Date: Mon, 19 Jun 2000 23:24:46 -0500
> 
> Questinos inline, first is for a unixhead, the rest for Win32
> hackers.

Uhhh  I'm just a dumb programmer, not a unixhead, but I'll keep
reading anyway :)

> > From: wrowe@locus.apache.org [mailto:wrowe@locus.apache.org]
> > Sent: Monday, June 19, 2000 10:14 PM
> > To: apache-2.0-cvs@apache.org
> > Subject: cvs commit: apache-2.0/src/lib/apr/file_io/win32 filestat.c
> > 
> > 
> > wrowe       00/06/19 20:13:31
> > 
> >   Modified:    src/lib/apr/file_io/win32 filestat.c
> >   Log:
> >     Whack that bug... stat functions now almost reasonably implemented
> >     on Win32... but security dectection issues linger.
> >   
> >   Revision  Changes    Path
> >   1.21      +99 -31    apache-2.0/src/lib/apr/file_io/win32/filestat.c
> >   
> >   Index: filestat.c
> >   ===================================================================
> >    ap_status_t ap_getfileinfo(ap_finfo_t *finfo, ap_file_t *thefile)
> >    {
> >   +    /* If my rudimentary knowledge of posix serves... inode is the absolute
> >   +     * id of the file (uniquifier) that is returned by NT as follows:
> 
> Uhmmm... follows much later (the three variables... whoops)
> 
> >   +     * user and group could be related as SID's, although this would ensure
> >   +     * it's own unique set of issues.  All three fields are significantly
> >   +     * longer than the posix compatible kernals would ever require.
> >   +     * TODO: Someday solve this, and fix the executable flag below the
> >   +     * right way with a security permission test (as well as r/w flags.)
> >   +     *
> >   +     *     dwVolumeSerialNumber
> >   +     *     nFileIndexHigh
> >   +     *     nFileIndexLow
> >   +     */
> >   +    finfo->user = 0;
> >   +    finfo->group = 0;
> >   +    finfo->inode = 0;
> 
> Would someone please explain what an inode is, so I am sure I understand it?
> nFileIndexHigh/Low is a 64 bit value on NT... and inode is a 16 bit,
> correct?

The inode is an identifier for the filesystem object which is unique
*within the device* that contains the object.  Usually, an app uses
inode+devno if it needs an identifier (or to see if two files are the
same), but I'll assume that Apache knows what it is doing.  Perhaps
inode is 16 bits on some system, but that doesn't allow many objects
per filesystem.  On Linux, it is unsigned long.

-- 
Jeff Trawick | trawick@ibm.net | PGP public key at web site:
     http://www.geocities.com/SiliconValley/Park/9289/
          Born in Roswell... married an alien...

Mime
View raw message