question about reported directory size

Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default question about reported directory size


    huff@>> dir /usr/lost+found/
    total 192
    drwxrwxrwt 2 root wheel 194048 Feb 23 13:01 .
    drwxr-xr-x 22 root wheel 512 Feb 23 03:38 ..

    Now I understand the 't' in the permissions ... sort of.
    a) does this mean the reported directory size will never
    shrink?
    b) is that the actual blocks in use, or an artifact?
    c) is is safe to delete and recreate the directory?


    Robert Huff



    Robert Huff Guest

  2. Similar Questions and Discussions

    1. Getting the total size of a directory
      I'm running out of web space and want to write a script that tell me the size of certain directories so I can see where the hog is. Can anyone...
    2. The user Directory publishing service reported an error
      Some but not all of my users get this error when trying to connect to my CPS managed server: Directory publishing service reported an error. Error...
    3. limit directory size
      Hi, perhaps someone knows how to limit the size of a certain directory within a partition. On the certain partition disk qoutation is active for...
    4. memory size reported by ps
      Hi, Looking at memory usage by processes, I used a ps -efo "args,vsz". I would expect to get the size of the process is real memory+pagingspace....
    5. Directory Size
      Greetings learned PHP(eople); Is there a way to calculate the size of directory in PHP ? I searched php.net and only found ways of opening...
  3. #2

    Default Re: question about reported directory size

    In the last episode (Feb 23), Robert Huff said:
    > huff@>> dir /usr/lost+found/
    > total 192
    > drwxrwxrwt 2 root wheel 194048 Feb 23 13:01 .
    > drwxr-xr-x 22 root wheel 512 Feb 23 03:38 ..
    >
    > Now I understand the 't' in the permissions ... sort of.
    > a) does this mean the reported directory size will never
    > shrink?
    > b) is that the actual blocks in use, or an artifact?
    > c) is is safe to delete and recreate the directory?
    A directory is only truncated on the first file create after a delete;
    this optimizes the common rm -rf case. Touch a dummy file in there and
    check the size again.

    --
    Dan Nelson
    [email]dnelson@allantgroup.com[/email]
    Dan Nelson Guest

  4. #3

    Default Re: question about reported directory size


    Dan Nelson writes:
    > A directory is only truncated on the first file create after a
    > delete; this optimizes the common rm -rf case. Touch a dummy
    > file in there and check the size again.
    "Who was that masked man?"
    "I don't know, but he left this silver bullet."

    Thanks.


    Robert Huff



    Robert Huff Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139