Linux-Development-Sys Digest #412, Volume #8 Sat, 13 Jan 01 06:13:10 EST
Contents:
Re: newbie question: mapping heap to shared memory
fsck of encrypted filesystems ("D. Stimits")
Problems with GTK draw area? ("Edgar F. Hilton")
Re: CVS question? (Thomas Gibson)
Re: fsck of encrypted filesystems ("Karl Heyes")
Re: ppp 2.3.10 fails (LCP Timeout) after installing 2.4.0 kernel. ("mpierce")
Re: IP over 1394 ([EMAIL PROTECTED])
Re: fsck of encrypted filesystems ([EMAIL PROTECTED])
Re: newbie question: mapping heap to shared memory ([EMAIL PROTECTED])
Re: ppp 2.3.10 fails (LCP Timeout) after installing 2.4.0 kernel. ("Gene Heskett")
can libraries be made to load> 0x40000000 (Eric Taylor)
2.2.18 & USB Does It or Doesn't It ("mpierce")
Re: 2.4.0 and sudden death in X? (Pierre Fortin)
Re: 2.4.0 and sudden death in X? (Pierre Fortin)
Video Streaming (Francis)
Re: parallel-clustering (Philip Armstrong)
Re: newbie question: mapping heap to shared memory (Kasper Dupont)
Re: fsck of encrypted filesystems (Kasper Dupont)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] ()
Crossposted-To: comp.os.linux.development.apps
Subject: Re: newbie question: mapping heap to shared memory
Date: Fri, 12 Jan 2001 20:10:41 -0000
In article <[EMAIL PROTECTED]>, adwait <[EMAIL PROTECTED]> wrote:
>Problem: I want to created heap in shared memory. I can create shared
>memory and attach it to process data area but don't know how to map
>Heap object to shared memory. Can any one please give me details of how
>to implement this. What is the correct approach to do this?
Why would you want your heap in shared memory? But if you insist, look
at the memory allocation stuff here:
http://www.gnu.org/manual/glibc-2.0.6/html_node/libc_toc.html
--
http://www.spinics.net/linux
------------------------------
Date: Fri, 12 Jan 2001 13:12:32 -0700
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: fsck of encrypted filesystems
Is there any way to fsck an encrypted partition? So far I haven't found
it, but I'd think maybe a loopback layer could be used on fsck the same
way that it is used to mount an encrypted system. As a related question,
do any of the newer journaling filesystems, such as ext3 or reiserfs,
allow encryption, or is the current code limited to ext2?
Thanks,
D. Stimits, [EMAIL PROTECTED]
------------------------------
From: "Edgar F. Hilton" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Problems with GTK draw area?
Date: Fri, 12 Jan 2001 15:41:52 -0500
Does anybody know why gtk drawing area would freeze whenever menus are
accessed which cover the drawing area? In other words, my app crashes 1
time out of fifty whenever a menu covers the drawing area.
Has anybody had similar problems or can someone point me to the cause?
Thanks!
--
Edgar F. Hilton FSMLabs, Inc.
voice: 850.893.0300 www.fsmlabs.com
fax: 206.350.4EFH www.rtlinux.com
------------------------------
From: Thomas Gibson <[EMAIL PROTECTED]>
Subject: Re: CVS question?
Date: Fri, 12 Jan 2001 22:40:09 GMT
Rini van Zetten wrote:
> there is a cvs newsgroup : gnu.cvs.help
Unfortunately, my news server doesn't carry it ;-(.
------------------------------
From: "Karl Heyes" <[EMAIL PROTECTED]>
Subject: Re: fsck of encrypted filesystems
Date: Fri, 12 Jan 2001 23:04:05 +0000
In article <[EMAIL PROTECTED]>, "D. Stimits"
<[EMAIL PROTECTED]> wrote:
> Is there any way to fsck an encrypted partition? So far I haven't
> found it, but I'd think maybe a loopback layer could be used on fsck
> the same way that it is used to mount an encrypted system. As a
> related question, do any of the newer journaling filesystems, such
> as ext3 or reiserfs, allow encryption, or is the current code
> limited to ext2?
>
encrypted filesystems hook through /dev/loop.., can't you fsck through
that, you will probably need a modified fsck to deal with the
encryption, check for read-only if your not sure. The filesystem
used should be independant providing it has the means of decrypting
the data.
karl.
------------------------------
From: "mpierce" <[EMAIL PROTECTED]>
Subject: Re: ppp 2.3.10 fails (LCP Timeout) after installing 2.4.0 kernel.
Date: Sat, 13 Jan 2001 10:54:52 +1100
Reply-To: [EMAIL PROTECTED]
Hopefully, you guys are still monitoring this thread.
Having similar problem with K-2.4.0 on Mandrake 7.2 after finally getting
it to compile w/o panic or set profile freeze my system error.
Have tried using ppp-2.3.11, ppp-2.4.0-3, ppp-2.4.0b2-2 w/o success.
Did you guys patch the kernel?
Can someone post exactly how they got ppp to work in a step format, i.e.,
1) ...
2) ..., etc.
Thanks,
Marvin
In article <[EMAIL PROTECTED]>, "Gene Heskett"
<[EMAIL PROTECTED]> wrote:
> Gene Heskett sends Greetings to Clifford Kite;
>
> CK> Gene Heskett <[EMAIL PROTECTED]> wrote:
>>> Gene Heskett sends Greetings to Jerry Peters;
>
>>> JP> Definitely not my pppd, which came from cs.anu.edu.au. It expects
>>> JP> everything in /etc/ppp. I would suspect a distribution customized
>>> JP> pppd. If the distro has changed the location of the config files,
>>> JP> then the distro should have changed the man pages accordingly.
>
>>> Jerry, I'd *almost* argue that point, because I'm quite sure I got
>>> that tar.gz from the .au site Clifford Kite gave me a few weeks back.
>>> Of course .au is a heck of a lot of square miles, so it might not have
>>> been the same site, but it most certainly was an aussie site I got it
>>> from.
>
>>> Is that the same site you gave me Clifford?
>
> CK> No. The site for the new 2.4.0 pppd source packages, and any CK>
> later 2.4.x pppd that Paul Mackerras generates, is CK>
> linuxcare.com.au.
>
> Ok, I just checked my archive against that one, and its the same length,
> dated Aug 7 on the linuxcare site. ppp-2.4.0.tar.gz, 546,883 bytes
> long.
>
> Also, my bad, its the kernel ppp module that checks in near the end of
> dmesg with:
>
> PPP generic driver version 2.4.1
>
> Its all built as modules, good grief kernel 2.4.0-ac6 is big! I had to
> modularize a bunch of stuff just to get it to boot.
>
> And you're right, the rpm I got from PLD wasn't anywhere near the same
> thing. Someone might be able to use it, but I spent a couple of weeks
> playing with it from time to time with zilch success.
>
> Who, or what, is 'PLD'?
>
> Cheers, Gene
>
>
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: IP over 1394
Date: Sat, 13 Jan 2001 00:28:59 -0000
On Thu, 11 Jan 2001 17:18:21 -0800 James Mitchell <[EMAIL PROTECTED]> wrote:
| Does anyone know if there's support for IP over IEEE1394 in the new kernel?
| If not, does anyone know who's working on it and if they can use newbie
| help?
Should I toss all my Cat 5 and switch and replace with 1394 stuff?
Or is this just for those who happen to have 1394 and no ether?
--
=================================================================
| Phil Howard - KA9WGN | Dallas | http://linuxhomepage.com/ |
| [EMAIL PROTECTED] | Texas, USA | http://phil.ipal.org/ |
=================================================================
------------------------------
From: [EMAIL PROTECTED]
Reply-to: [EMAIL PROTECTED]
Subject: Re: fsck of encrypted filesystems
Date: Sat, 13 Jan 2001 01:18:11 GMT
>>>>> "Stimits" == D Stimits <[EMAIL PROTECTED]> writes:
Stimits> Is there any way to fsck an encrypted partition? So far I
Stimits> haven't found it, but I'd think maybe a loopback layer could
Stimits> be used on fsck the same way that it is used to mount an
Stimits> encrypted system. As a related question, do any of the newer
Stimits> journaling filesystems, such as ext3 or reiserfs, allow
Stimits> encryption, or is the current code limited to ext2?
There lies the thorny part of using encryption...
-> If the FS is encrypted at the partition level, then certainly
everything stays encrypted, all the time. But if a sector goes
bad, on the "physical world" side of things, there can be massive
data destruction. Pretty much the same story as having "compressed
partitions."
-> In contrast, using something like CFS, where data and filenames are
encrypted by an intermediate layer, there's _no_ encryption at the
"physical" layer; files are just files, and an ordinary fsck will
do the job. The data interior to files and filenames is encrypted,
as maintained by the intermediary. [In the case of CFS, this is a
sort of NFS daemon.]
I would commend the latter approach as usually being preferable; NFS
runs lots of places as does CFS, and this requires minimal "system
surgery" to support.
I use CFS atop ReiserFS for some files; that seems to work quite OK,
and I'm not overly worried about fscking it as the files are indeed
"native files" on ReiserFS.
--
(reverse (concatenate 'string "ac.notelrac.teneerf@" "454aa"))
<http://www.ntlug.org/~cbbrowne/crypto.html>
Bushydo, the way of the shrub -- BONSAI!
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps
Subject: Re: newbie question: mapping heap to shared memory
Date: Sat, 13 Jan 2001 01:40:16 GMT
In article <[EMAIL PROTECTED]>,
adwait <[EMAIL PROTECTED]> wrote:
> I am new to UNIX programming and is learning IPC. Here is my doubt and
> is hoping to get help on it.
>
> Platform: Linux - Red Hat 6.2
> Programming language : C/C++
>
> Problem: I want to created heap in shared memory. I can create shared
> memory and attach it to process data area but don't know how to map
> Heap object to shared memory. Can any one please give me details of
how
> to implement this. What is the correct approach to do this?
>
> Adwait
>
>
Hi,
Placing heap in shared memory is not such a good idea. The problem is
that each process that attaches to the shared memory will map it to a
different location. Hence pointers cannot be used. All locations in the
data structures will need to be via indexes or offsets relative to the
start of the area.
HTH,
Brenton
Sent via Deja.com
http://www.deja.com/
------------------------------
Date: 12 Jan 2001 21:22:37 -0500
From: "Gene Heskett" <[EMAIL PROTECTED]>
Subject: Re: ppp 2.3.10 fails (LCP Timeout) after installing 2.4.0 kernel.
Gene Heskett sends Greetings to mpierce ;
> Hopefully, you guys are still monitoring this thread.
> Having similar problem with K-2.4.0 on Mandrake 7.2 after finally
> getting it to compile w/o panic or set profile freeze my system
> error.
> Have tried using ppp-2.3.11, ppp-2.4.0-3, ppp-2.4.0b2-2 w/o success.
> Did you guys patch the kernel?
> Can someone post exactly how they got ppp to work in a step format,
> i.e.,
> 1) ...
> 2) ..., etc.
Duh, dunno if I can. I built ppp as a module, and the /etc/modules.conf
file entries are a little different, all recorded by dejanews. I'd post
it, but I'm not on that machine for email or news. Thats all documented
in the readme's in the tar.gz archive of the latest ppp.
The authoritative ppp-2.4.0 release is the one at linuxcare.com.au, and
none of the 2.3 series wil work with kernel 2.4 and up.
In my case, and I've been told I shouldn't have to do that, but I had to
copy my /etc/ppp/*-secrets files to /etc/sysconf/network-scripts before
it would work.
Cheers, Gene
--
Gene Heskett, CET, UHK |Amiga A2k Zeus040, Linux @ 600mhz
email gene underscore heskett at iolinc dot net
#Amiga based X10 home automation program EZHome, see at:#
# <http://www.thirdwave.net/~jimlucia/amigahomeauto> #
ISP's please take note: My spam control policy is explicit!
#Any Class C address# involved in spamming me is added to my killfile
never to be seen again. Message will be automaticly deleted without dl.
This messages reply content, but not any previously quoted material,
is � 2000 by Gene Heskett, all rights reserved.
--
------------------------------
From: Eric Taylor <[EMAIL PROTECTED]>
Subject: can libraries be made to load> 0x40000000
Date: Sat, 13 Jan 2001 02:59:28 GMT
Hi:
I've got a app that needs more
than 1 gig virtual address space.
All the libraries load at 0x40000000,
if I could force these higher, I could
have more address space (that sbrk could
grab). I need all the dynamic memory to
be contiguous so I can write it all out
in one i/o.
Is this possible?
Eric
------------------------------
From: "mpierce" <[EMAIL PROTECTED]>
Subject: 2.2.18 & USB Does It or Doesn't It
Date: Sun, 14 Jan 2001 01:34:37 +1100
Does it support USB?
I've got a USB Zip250 configured as:
/dev/sda4 /mnt/zip vfat noauto,user,rw 0 0
I do:
[root@localhost mpierce]# insmod ide-scsi
Using /lib/modules/2.2.18/scsi/ide-scsi.o
[root@localhost mpierce]# cd /dev
[root@localhost /dev]# mount /mnt/zip
mount: the kernel does not recognize /dev/sda4 as a block device
(maybe `insmod driver'?)
[root@localhost /dev]#
If 2.2.18 supports USB then, I'm probably something minor that is not
allowing 2.2.18 to recognise the device correctly.
Anyone have suggestion as to how to fix this problem?
Marvin
------------------------------
From: Pierre Fortin <[EMAIL PROTECTED]>
Subject: Re: 2.4.0 and sudden death in X?
Date: Fri, 12 Jan 2001 23:55:01 -0500
Reply-To: [EMAIL PROTECTED]
Konstantinos Agouros wrote:
>
> Hi,
>
> I just tried out 2.4.0 and had some sudden deaths (machine just stood).
> At the time of the deaths I had an ISDN-Line up. Otherwise nothing special.
> System is a K6/2, SCSI (Adaptec), Teles 8-Bit-Card, USB-Support enabled.
>
> Somebody has an idea about that?
Mine is ASUS P2B PII/400/256MB IDE(2HD,CD,CD-R), SCSI(4HD, 2tape,
scanner), 2ether(eepro,3c905b).
No idea yet; but with LM7.2+2.4.0, my system locked up where only the
mouse cursor was responding. Keyboard and mouse buttons all dead.
Externally, only ping was responding; ftp, ssh & http not responding.
Only option was hard reset. Rebooted to 2.2.17 for now since my
reason4reboot file was getting too much activity with 2.4.0...
01/11/01: total lockup except mouse motion & ping
01/10/01: network bug handling multiple ethernets
01/09/01: installed 3c905B-TX
01/09/01: eepro debugging
01/09/01: 2.4.0 DoS bug
01/04/01: installed Linux 2.4.0
12/25/00: debugging failing NFS (eepro errors)
11/18/00: installed Mandrake 7.2, +2 SCSI HDs
so you're not alone...
Pierre
> Konstantin
>
> P.S.: With 2.4 my harddisks are shown bigger than before (for example the
> 9GB-drive is now shown as 9.1 instead of 8.7). Has something changed here,
> too?
> --
> Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: [EMAIL PROTECTED]
> Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185
> ----------------------------------------------------------------------------
> "Captain, this ship will not sustain the forming of the cosmos." B'Elana Torres
------------------------------
From: Pierre Fortin <[EMAIL PROTECTED]>
Subject: Re: 2.4.0 and sudden death in X?
Date: Sat, 13 Jan 2001 01:29:46 -0500
Yikes... I just had another random X failure; but this one was a tad
different...
I was reading some newsgroups and decided to mark some "read" by right-clicking
on the group name.
Suddenly, X died, lots of disk activity. kdm re-appeared a few moments later
but the mouse seemed to be magnetic in that it always headed to the upper right
corner. Any attempts at getting near the kdm window resulted in random warping
movements...
Was about to reboot as with previous times... Then, out of the corner of my
eye, I noticed the right-most LED was lit (never noticed this one before, so I'm
in unfamiliar territory now...).
Switching to the virtual consoles, #1 had an offset raster and would take no
input. #12 was mostly raster and a few lines of the X log. While trying
various key combinations, I stumbled on Ctl+q (xon) while in #1 which turned off
the LED... Lo and behold, in vc#7, the mouse was now reacting correctly and I'm
back into X without rebooting this time.
>From here, I discovered that I can use Ctl+s (xoff) on any v.c. and the LED
lights. Then, when switching between VCs, the LED lets me know which vc has
output halted... hence, Linux deliberately maintains the xon/xoff status for
each vc and indicates it via this LED.
This begs the questions:
1. Since I never use xoff/xon (less is a more predictable pager), can a VC
accept xoff from anything other than the keyboard (present code, not theory)?
2. If a console is halted for an extended period, is it possible to get an
overflow somewhere resulting in an X (vc#7) crash...?
3. I haven't found a way to xoff _X_ (not just a term window); is there one? If
so, could that result in an X crash?
Pierre
I wrote:
>
> Konstantinos Agouros wrote:
> >
> > Hi,
> >
> > I just tried out 2.4.0 and had some sudden deaths (machine just stood).
> > At the time of the deaths I had an ISDN-Line up. Otherwise nothing special.
> > System is a K6/2, SCSI (Adaptec), Teles 8-Bit-Card, USB-Support enabled.
> >
> > Somebody has an idea about that?
>
> Mine is ASUS P2B PII/400/256MB IDE(2HD,CD,CD-R), SCSI(4HD, 2tape,
> scanner), 2ether(eepro,3c905b).
>
> No idea yet; but with LM7.2+2.4.0, my system locked up where only the
> mouse cursor was responding. Keyboard and mouse buttons all dead.
> Externally, only ping was responding; ftp, ssh & http not responding.
> Only option was hard reset. Rebooted to 2.2.17 for now since my
> reason4reboot file was getting too much activity with 2.4.0...
>
> 01/11/01: total lockup except mouse motion & ping
> 01/10/01: network bug handling multiple ethernets
> 01/09/01: installed 3c905B-TX
> 01/09/01: eepro debugging
> 01/09/01: 2.4.0 DoS bug
> 01/04/01: installed Linux 2.4.0
> 12/25/00: debugging failing NFS (eepro errors)
> 11/18/00: installed Mandrake 7.2, +2 SCSI HDs
>
> so you're not alone...
>
> Pierre
------------------------------
From: [EMAIL PROTECTED] (Francis)
Subject: Video Streaming
Date: Thu, 11 Jan 2001 05:44:21 GMT
Is there anyone tried to write some applications in simulating the
process of video streaming? How can I define the data structure of
video streaming? Where can I find those related information about the
basic streaming concepts and technology? Thanks for your concern.
Francis
------------------------------
From: [EMAIL PROTECTED] (Philip Armstrong)
Subject: Re: parallel-clustering
Date: 12 Jan 2001 23:25:21 -0000
In article <Pine.GSO.4.21.0101121536550.28771-100000@acms23>,
Guennadi V. Liakhovetski <[EMAIL PROTECTED]> wrote:
>On Fri, 12 Jan 2001, Tyler Vallillee wrote:
>
>> For a good parallel clustering solution that is easy to setup, check out
>> Mosix: www.mosix.org
>I just know that fast network IS crucial:-)
>
Yup, although depending on your application, 100Mbit ethernet may be
fine. Whether you need a faster/lower latency solution depends on your
hardware.
At work we set up a 8-node cluster for development purposes; we ended
up using LAM as the MPI implementation; we didn't need lower latency
solutions like Score.
email me if you want details of our setup, but its at least 6 months
our of date...
Phil
--
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: newbie question: mapping heap to shared memory
Date: Sat, 13 Jan 2001 10:33:48 +0000
[EMAIL PROTECTED] wrote:
>
> In article <[EMAIL PROTECTED]>,
> adwait <[EMAIL PROTECTED]> wrote:
> > I am new to UNIX programming and is learning IPC. Here is my doubt and
> > is hoping to get help on it.
> >
> > Platform: Linux - Red Hat 6.2
> > Programming language : C/C++
> >
> > Problem: I want to created heap in shared memory. I can create shared
> > memory and attach it to process data area but don't know how to map
> > Heap object to shared memory. Can any one please give me details of
> how
> > to implement this. What is the correct approach to do this?
What do you mean? Is it a single data structure you want to place in
shared memory or should all calls to malloc from any process immediately
be available to other processes? In the later case what you need is to
use threads with shared address space. Perhaps some posix thread library
would be the right solution.
> >
> > Adwait
> >
> >
> Hi,
> Placing heap in shared memory is not such a good idea. The problem is
> that each process that attaches to the shared memory will map it to a
> different location. Hence pointers cannot be used. All locations in the
> data structures will need to be via indexes or offsets relative to the
> start of the area.
That is not necesarilly true. If shared memory is mapped before
forking a number of processes it will be at the same address.
In other cases you might be able to do it by specifying an
address, but that would probably cause problems with portability
and other issues.
If everything else fails, using idexes from start of shared
memory is still an option, you would have to do something like
that with all other ways of inter process communication.
>
> HTH,
> Brenton
>
> Sent via Deja.com
> http://www.deja.com/
--
Kasper Dupont
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: fsck of encrypted filesystems
Date: Sat, 13 Jan 2001 10:40:17 +0000
Karl Heyes wrote:
>
> In article <[EMAIL PROTECTED]>, "D. Stimits"
> <[EMAIL PROTECTED]> wrote:
>
> > Is there any way to fsck an encrypted partition? So far I haven't
> > found it, but I'd think maybe a loopback layer could be used on fsck
> > the same way that it is used to mount an encrypted system. As a
> > related question, do any of the newer journaling filesystems, such
> > as ext3 or reiserfs, allow encryption, or is the current code
> > limited to ext2?
> >
>
> encrypted filesystems hook through /dev/loop.., can't you fsck through
> that, you will probably need a modified fsck to deal with the
> encryption, check for read-only if your not sure. The filesystem
> used should be independant providing it has the means of decrypting
> the data.
>
> karl.
If the loopback encryption is used the following should work,
but I have never actually tried.
losetup -e encryption [ -o offset ] loop_device file
fsck loop_device
Where loop_device could be /dev/loop7 and file could be
/dev/hda6
Check the man page losetup(8).
--
Kasper Dupont
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list by posting to the
comp.os.linux.development.system newsgroup.
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************