🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39173

Re: NNTP - building the ultimate server

#39173
From: Miquel van Smoorenburg
Date: Sat, 14 Aug 1999 00:00
71 lines
3322 bytes
In article <ylso5mj564.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Oh, yeah, that reminds me of another nice advantage of Solaris over Linux
>correctly:  Unless they've added better raw device support to Linux
>recently, it still can't do what Solaris can do with CNFS (namely just
>directly use the raw disk and do away with all of the file/block/inode
>overhead).

ftp://ftp.cistron.nl/pub/people/miquels/kernel/v2.2/rawfs-0.6.tar.gz

It's a loadable module, you don't even need to reboot before you
can start using it. I've been running it on our news servers for
over a year now (there's also a 2.0 version) and it works fine.

Here is the README:

                        README for RawFS 0.6

0. INTRODUCTION

Rawfs is a filesystem that shows you the partitions on a disk as
files. It can be used, for example, to do mmap() on block-
devices (which Linux doesn't support directly).

The files are numbered from 0 .. max_partitions. "0" is always the
whole disk. If the disk has partitions in it, you will see them as
files 1 and up. If you don't mount a whole disk, but for example
only /dev/hda1, you will only see file "0".

On 32bit systems such as the i386, the maximum file size is limited
to 2GB. This is because all access goes through the pagecache, which
is (as part of the memory subsystem) limited to 32bits.

1. COMPILING

Edit the Makefile and adjust the path to your kernel headers. You may want
to remove -DMODVERSIONS if you don't have module-versioning turned on
in your kernel (if unsure just try). Type "make". The module "rawfs.o"
should now be built.

This module was tested under 2.2.1, 2.2.7 and 2.2.9. The 0.5 version works
for 2.2.x kernels where x < 7, the 0.6 version works on 2.2.7+. For a
version that runs under the 2.0.x (x >= 36) kernels, use rawfs-0.4.tar.gz


2. USAGE

First insmod the module:

        insmod rawfs.o

Then mount the partition(s):

        mount -traw -ooptions /dev/hda /mnt

Options:
        uid=xxx         User that owns root directory and files.
        gid=xxx         Ditto for group
        umask=xxx       Umask. Default is 077.
        show=1+3+...    Use if you only want to make certain
                        files visible.


        rawfs  0.6  29-Apr-1999  miquels@cistron.nl

Mike.
-- 
... somehow I have a feeling the hurting hasn't even begun yet
	-- Bill, "The Terrible Thunderlizards"

Technical Details
Message-ID: <7p3fof$qkr$1@defiant.cistron.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <37a5671a.1475189546@news.ftech.net> <87k8r0b3ka.fsf@slip129-37-108-65.nj.us.ibm.net> <37B4E74C.548A0B42@after10.com> <ylso5mj564.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <7p3fof$qkr$1@defiant.cistron.net>
Subject: Re: NNTP - building the ultimate server
Date: Sat, 14 Aug 1999 00:00:00 +0000
From: miquels@cistron.nl (Miquel van Smoorenburg)
References: <37a5671a.1475189546@news.ftech.net> <87k8r0b3ka.fsf@slip129-37-108-65.nj.us.ibm.net> <37B4E74C.548A0B42@after10.com> <ylso5mj564.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 512619845
X-Complaints-To: abuse@cistron.nl
X-Trace: enterprise.cistron.net 934625880 30884 195.64.65.22 (14 Aug 1999 10:18:00 GMT)
Organization: Cistron Internet Services B.V.
NNTP-Posting-Date: 14 Aug 1999 10:18:00 GMT
Newsgroups: news.software.nntp