<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Directory Modification Time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-modification-time/m-p/3313422#M186038</link>
    <description>Stop thinking of the directory as a directory and think of of as simply a regular file and your observations will make sense. A directory is really metadata - data that describe other data. Nothing in the directory's contents change if a file within a directory is modified because none of those involve a change of the metadata -- any of the other changes you mentioned directly affect the metadata so that the directory has to be rewritten and thus the modification time is changed.&lt;BR /&gt;</description>
    <pubDate>Wed, 23 Jun 2004 13:12:10 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2004-06-23T13:12:10Z</dc:date>
    <item>
      <title>Directory Modification Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-modification-time/m-p/3313421#M186037</link>
      <description>&lt;BR /&gt;  I was trying to figure out how the Directory modification time is handled. So, wanted to see if anyone can help me understand this better&lt;BR /&gt;&lt;BR /&gt;  Directory modification time is&lt;BR /&gt;&lt;BR /&gt;a) NOT updated if an exisiting file within that directory is modified&lt;BR /&gt;&lt;BR /&gt;b) updated if a new file is created.&lt;BR /&gt;&lt;BR /&gt;c) updated if an existing file is removed.&lt;BR /&gt;&lt;BR /&gt;d) updated if an existing file is renamed&lt;BR /&gt;&lt;BR /&gt;   Given that directory contains nothing more than map of inode to file names, the above mentioned behavior makes sense to me. But was wondering how do you guys interpret this ?&lt;BR /&gt;&lt;BR /&gt;   Also what determines a directory size ?&lt;BR /&gt;&lt;BR /&gt;   Any useful input will be appreciated with points :-)&lt;BR /&gt;&lt;BR /&gt;-- Sundar.&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jun 2004 13:04:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-modification-time/m-p/3313421#M186037</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-06-23T13:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Modification Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-modification-time/m-p/3313422#M186038</link>
      <description>Stop thinking of the directory as a directory and think of of as simply a regular file and your observations will make sense. A directory is really metadata - data that describe other data. Nothing in the directory's contents change if a file within a directory is modified because none of those involve a change of the metadata -- any of the other changes you mentioned directly affect the metadata so that the directory has to be rewritten and thus the modification time is changed.&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jun 2004 13:12:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-modification-time/m-p/3313422#M186038</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-06-23T13:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Modification Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-modification-time/m-p/3313423#M186039</link>
      <description>Thanks Clay. I kind of figured that is the case - What about the directory size ? what determines the size of a directory ?</description>
      <pubDate>Wed, 23 Jun 2004 13:22:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-modification-time/m-p/3313423#M186039</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-06-23T13:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Modification Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-modification-time/m-p/3313424#M186040</link>
      <description>Use a text editor to examine /usr/include/sys/dirent.h. A directory is essentially a file that consists of a bunch of struct dirent's plus a little bit of additional header data. Essentially the size of a directory is determined by the number of dirent's. A few things should be noted. First, if a file is unlinked (rm'ed), the dirent is not actually removed but is rather marked available so that the dirent can be used for new files. Thus removing a file does not shrink a directory. If there are no available dirents in a directory and a file needs to be created, the directory is rewritten with the larger size. The other thing to note is that a file might have more than one directory entry --- hard linked files share a common inode but each link has its own directory entry.&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jun 2004 13:32:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-modification-time/m-p/3313424#M186040</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-06-23T13:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Modification Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-modification-time/m-p/3313425#M186041</link>
      <description>Thanks Clay - As always, you are second to none! - Be right there, I will catch you up in some 10 years :-)</description>
      <pubDate>Wed, 23 Jun 2004 13:46:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-modification-time/m-p/3313425#M186041</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-06-23T13:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Modification Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-modification-time/m-p/3313426#M186042</link>
      <description>I agree with Sundar.&lt;BR /&gt;&lt;BR /&gt;There is only one A. Clay Stephenson.&lt;BR /&gt;In my spare time, I just browse through his postings/replies. Rather his replies.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Wed, 23 Jun 2004 13:56:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-modification-time/m-p/3313426#M186042</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-06-23T13:56:18Z</dc:date>
    </item>
  </channel>
</rss>

