public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How to create a fixed length character/block device/file ?
@ 2007-01-26 20:10 Khai Doan
  2007-01-26 20:49 ` H. Peter Anvin
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Khai Doan @ 2007-01-26 20:10 UTC (permalink / raw)
  To: linux-kernel

Sorry if this is the wrong list.  I've search google, but have not found 
solution to my problem.

I have a long running application which split out lots of debugging 
information.  I can't redirect the output to a regular file because that 
file would grow and eat up all the diskspace.  I can't redirect to 
/dev/null.  What I want is the last 1MB of the output before my 
application terminated.  So I need to create a special file / device on 
the system.  Please tell me if  there is an existing device that I can 
use, or point me in the right direction so that I can role my own device.

Thanks
Khai Doan

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-01-26 21:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-26 20:10 How to create a fixed length character/block device/file ? Khai Doan
2007-01-26 20:49 ` H. Peter Anvin
2007-01-26 20:50 ` H. Peter Anvin
2007-01-26 20:50 ` Phillip Susi
2007-01-26 21:04   ` Jiri Slaby
2007-01-26 21:35 ` Alan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox