Re: Is there a "blackhole" /dev/null directory?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bill Davidsen
Date: Friday, February 15, 2008 - 12:25 pm

Jan Engelhardt wrote:

Also: to let a program believe it was creating files which are used to 
hold the written data. Otherwise /dev/null would probably be the solution.

I think what is going to happen is that files created behave as if they 
are the result of a mknod resulting in a /dev/null clone.

The directory structure can persist, it's the writing of data which can 
be avoided.

Real example:

A program which reads log files and prepares a whole raft of reports in 
a directory specified. If you just want to see the summary (stdout) and 
exception notices (stderr) having a nulldir would avoid the disk space 
and i/o load if you were just looking at the critical output rather than 
the analysis.

Yes, if this was an original program requirement it would or should have 
been a feature. Real world cases sometimes use tools in creative ways.

-- 
Bill Davidsen <davidsen@tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Is there a &quot;blackhole&quot; /dev/null directory?, Jasper Bryant-Greene, (Thu Feb 14, 2:39 am)
Re: Is there a &quot;blackhole&quot; /dev/null directory?, Jan Engelhardt, (Thu Feb 14, 8:00 am)
Re: Is there a &quot;blackhole&quot; /dev/null directory?, linux-os (Dick Johnson), (Thu Feb 14, 8:06 am)
Re: Is there a &quot;blackhole&quot; /dev/null directory?, Jan Engelhardt, (Thu Feb 14, 8:23 am)
Re: Is there a "blackhole" /dev/null directory?, Bill Davidsen, (Fri Feb 15, 12:25 pm)