All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: iptables routing help
From: Unknown, Alistair Tonner @ 2004-01-25 17:09 UTC (permalink / raw)
  To: William Knop, netfilter
In-Reply-To: <A9EB4907-4EF7-11D8-A7CD-000A9577164C@hotmail.com>

On January 25, 2004 12:31 am, William Knop wrote:
> Say I want to transfer a file from one computer to another in my house.
> Since they are on different subnets, the data is routed out my modem to
> the gateway at my isp, and then back in my modem and to the other
> computer in my house. Ideally (in any reasonable setup), the data
> should not leave the house and flood my dsl modem with local traffic.
>
> So, I want to grab packets destined for the gateway (via a
> firewall/iptables), check if the packet is destined for one of the
> three local subnets, and make the packet go directly to it's
> destination. I'm not sure if this has to do with ethernet frames,
> tcp/ip, or arp or something like that, but I've tried lots of things
> with minimal success.
>
> > im not shure if i can understand the schema, could be more specific?
> >
> > thanks
> >
> >

	Okay ...you have a LAN inside the DSL modem that has 
	externally routable IPs on different subnets, and you want
	to setup an internal routing table that knows all of these 
	hosts.

	One question ... what is the physical setup involved?

	i.e. are all the boxes involved connected directly to the DSL modem?
	is the Linux/Iptables box the only box connected to the DSL modem, and
	the downstream boxes are connected to a switch/hub off a secondary 
	interface off the firewall box?

	-- I suspect from your description we are looking at  DSLmodem/router to 
	separate boxes ...


	Alistair


^ permalink raw reply

* [U-Boot-Users] IBM PPC 970 - support
From: Ronen Shitrit @ 2004-01-25 17:06 UTC (permalink / raw)
  To: u-boot
In-Reply-To: <4003D8FA.9080502@il.marvell.com>

Do you know if the U-Boot has support for 64nit PPC??

Ronen Shitrit wrote:

> Hi all
>
> Does anyone plan to port the U-Boot to support the IBM 970 PPC 64bit?
> Did someone start with it already?
>
> Thanks
>

-- 
Ronen Shitrit

M.S.I.L
D.N. Misgav  20184
Tel:   +972-4-9951000
Fax:   +972-4-9951001
Email: mailto: ronen.shitrit at il.marvell.com
_____________________________________________________________
This message may contain confidential, proprietary or legally privileged 
information. The information is intended only for the use of the individual 
or entity named above. If the reader of this message is not the intended 
recipient, you are hereby notified that any dissemination, distribution 
or copying of this communication is strictly prohibited. If you have 
received this communication in error, please notify us immediately by 
telephone, or by e-mail and delete the message from your computer.

^ permalink raw reply

* Re: GCC-3.4 reorders asm() with -O2
From: Daniel Jacobowitz @ 2004-01-25 17:03 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Jan Hubicka, echristo, hubicka, eager, gcc, linux-mips
In-Reply-To: <20040125164758.79373419.ak@suse.de>

On Sun, Jan 25, 2004 at 04:47:58PM +0100, Andi Kleen wrote:
> On Sun, 25 Jan 2004 11:05:14 +0100
> Jan Hubicka <jh@suse.cz> wrote:
> 
> > > 
> > > > 
> > > > For x86 it does.  For MIPS I'm quite sure it doesn't - well, it will
> > > > compile, but not work.
> > > 
> > > but, unlike x86 this is hardly a surprise on a daily basis.
> > 
> > I think Andi has sollution that shall fix the other architectures in the
> > kernel too.
> 
> If it's the same problem that broke i386: Current bitkeeper should sort the exception tables
> and fix it. It's actually done with a patch from Paul Mackerras. Of course it could be a different
> issue too that's breaking MIPS.

It is.  Ralf already knows about the problem, I think - we leave
markers outside of functions which define an entry point, save some
additional registers to the stack, and try to fall through to the
following function.  If the function gets emitted elsewhere, obviously,
we've lost :)

[This is save_static_function...]

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply

* Re: iptables routing help
From: Alexis @ 2004-01-25 16:56 UTC (permalink / raw)
  To: Netfilter
In-Reply-To: <A9EB4907-4EF7-11D8-A7CD-000A9577164C@hotmail.com>

in this case (i understand now)
Like Antony said, the better approach is to make a linux box with
netfilter as firewall and 2 nics.

One of this nics connected to the dsl modem and the other nic as the
LAN. 

So all boxes inside de lan are connected, and you must configure nat in
the linux box in order to the LAN boxes reach internet.



On Sun, 2004-01-25 at 02:31, William Knop wrote:
> Say I want to transfera file from one computer to another in my house.
> Since they are ondifferent subnets, the data is routed out my modem to
> the gateway atmy isp, and then back in my modem and to the other
> computer in myhouse. Ideally (in any reasonable setup), the data
> should not leavethe house and flood my dsl modem with local traffic.
> 
> So, I want to grab packets destined for the gateway (via
> afirewall/iptables), check if the packet is destined for one of
> thethree local subnets, and make the packet go directly to
> it'sdestination. I'm not sure if this has to do with ethernet
> frames,tcp/ip, or arp or something like that, but I've tried lots of
> thingswith minimal success.
> 
> 
>         im not shureif i can understand the schema, could be more
>         specific?
>         
>         thanks
>         
>         
>         ----- Original Message ----- 
>         From: "William Knop"<w_knop@hotmail.com>
>         To:<netfilter@lists.netfilter.org>
>         Sent: Saturday, January 24, 2004 6:25 PM
>         Subject: iptables routing help
>         
>         
>         > Hello,
>         >My dsl provider has my house on several subnets (ips obtained
>         viadhcp, 
>         >along with a netmask of 255.255.255.0), so I have had to
>         screw around 
>         >with each machine to make sure local traffic doesn't flood
>         the dsl 
>         >modem. To remedy this, I've been trying to set up a firewall
>         box to 
>         >basically reroute those three subnets as local, but I'm
>         finding itvery 
>         >difficult. It seems like every doc out there only addresses
>         nat, which 
>         >is definitely not what we want. I'd greatly appreciate some
>         help 
>         >accomplishing this.
>         > 
>         >Thanks much,
>         >William
>         > 
>         > 
>         > 
>         > 
> 
-- 
Alexis <alexis@attla.net.ar>



^ permalink raw reply

* Re: partitioning
From: S. Barret Dolph @ 2004-01-25 16:53 UTC (permalink / raw)
  To: linux-newbie
In-Reply-To: <5.1.0.14.1.20040125083200.01fa3928@celine>

As always it is good to read your advice. I have learned much from this list 
and much from you.

Cordially,
S. Barret Dolph


On Monday 26 January 2004 00:42, Ray Olszewski wrote:
> At 09:37 PM 1/25/2004 +0800, S. Barret Dolph wrote:
> >I am probably getting too picky about repartitioning my drive but I want
> >it to
> >be set up for a long time. I never use all the space in my harddrive even
> >though it is relatively small. (I only use it for work and don't play any
> >games.)
> >
> >Questions......
> >
> >My old setup
> >
> >sda1    /               1g
> >sda5            /swap   1024k  (512ram)
> >sda6            /usr            6g
> >sda7            /home   10g
> >
> >I will be using Sourcemage which puts sources in /var so I have been
> > thinking about taking 3g out of home and making a /var of 3g.
> >
> >  I will probably take another 3 out of home and add it to usr/ but that
> > is probably overkill. Neither use too much.
> >
> >I am confused about where /swap should go. I have a SCSI drive and from
> >what I
> >read that should be on the outside. So should I put /swap at sda8? (Given
> >that I have added /var.)
> >
> >I had a /home because it was convenient to upgrade with CD's when I only
> >had a
> >56 modem. Now that I am using a source based installation is the /home
> >unnecessary as I am the only user.
> >
> >Is having a /tmp partition necessary?
>
> Questions of the sort you pose here are hard to answer because they do not
> really have "right" answers. The best partitioning strategy for a specific
> system depends on the anticipated uses for that system, the distro
> involved, specifics of its hardware, and probably yhe personal style of the
> person who will admin it.
>
> My own preference, just as an example, is to minimize partitioning, to
> avoid later needs to repartition when my needs change. So for a 1-drive
> system, I typically do something like this --
>
>          hda1 = small (50 MB or so) partition, mounted at /boot
>          hda2 = midsize (256-1024 MB) partition, used as swap
>          hda3 = rest of disk, mounted as / (root partitionj)
>
> Sometimes I use a 4-partition setup, varying the above as
>
>          hda3 = between 10 GB and 20 GB, mounted as /
>                  (depends a lot on the size of the drive, of course)
>          hda4 = rest of disk, mounted as /home
>
> But even there I have systems that depart from those rules ... and, of
> course, multi-drive systems get more complex. But I never find it desirable
> to set up separate partitions for /usr, /var, and /tmp ... I've found that
> making them separate just introduces more opportunities for things to go
> wrong.
>
> That's just me, though ... this is an area where reasonable people come to
> different comculsions about the best approach.
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply

* Re: [RFC/PATCH] IMQ port to 2.6
From: Tomas Szepe @ 2004-01-25 16:44 UTC (permalink / raw)
  To: linux-kernel, netdev
In-Reply-To: <20040125152419.GA3208@penguin.localdomain>

On Jan-25 2004, Sun, 16:24 +0100
Marcel Sebek <sebek64@post.cz> wrote:

> I have ported IMQ driver from 2.4 to 2.6.2-rc1.
> Original version was from http://trash.net/~kaber/imq/.
> ...

It would definitely be nice to see IMQ merged at last.

-- 
Tomas Szepe <szepe@pinerecords.com>

^ permalink raw reply

* Re: partitioning
From: Ray Olszewski @ 2004-01-25 16:42 UTC (permalink / raw)
  To: linux-newbie
In-Reply-To: <200401252137.39975.wheds8@ms66.hinet.net>

At 09:37 PM 1/25/2004 +0800, S. Barret Dolph wrote:
>I am probably getting too picky about repartitioning my drive but I want 
>it to
>be set up for a long time. I never use all the space in my harddrive even
>though it is relatively small. (I only use it for work and don't play any
>games.)
>
>Questions......
>
>My old setup
>
>sda1    /               1g
>sda5            /swap   1024k  (512ram)
>sda6            /usr            6g
>sda7            /home   10g
>
>I will be using Sourcemage which puts sources in /var so I have been thinking
>about taking 3g out of home and making a /var of 3g.
>
>  I will probably take another 3 out of home and add it to usr/ but that is
>probably overkill. Neither use too much.
>
>I am confused about where /swap should go. I have a SCSI drive and from 
>what I
>read that should be on the outside. So should I put /swap at sda8? (Given
>that I have added /var.)
>
>I had a /home because it was convenient to upgrade with CD's when I only 
>had a
>56 modem. Now that I am using a source based installation is the /home
>unnecessary as I am the only user.
>
>Is having a /tmp partition necessary?

Questions of the sort you pose here are hard to answer because they do not 
really have "right" answers. The best partitioning strategy for a specific 
system depends on the anticipated uses for that system, the distro 
involved, specifics of its hardware, and probably yhe personal style of the 
person who will admin it.

My own preference, just as an example, is to minimize partitioning, to 
avoid later needs to repartition when my needs change. So for a 1-drive 
system, I typically do something like this --

         hda1 = small (50 MB or so) partition, mounted at /boot
         hda2 = midsize (256-1024 MB) partition, used as swap
         hda3 = rest of disk, mounted as / (root partitionj)

Sometimes I use a 4-partition setup, varying the above as

         hda3 = between 10 GB and 20 GB, mounted as /
                 (depends a lot on the size of the drive, of course)
         hda4 = rest of disk, mounted as /home

But even there I have systems that depart from those rules ... and, of 
course, multi-drive systems get more complex. But I never find it desirable 
to set up separate partitions for /usr, /var, and /tmp ... I've found that 
making them separate just introduces more opportunities for things to go wrong.

That's just me, though ... this is an area where reasonable people come to 
different comculsions about the best approach.



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply

* Re: [janitor] depca: release resources on errors
From: Jeff Garzik @ 2004-01-25 16:36 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: netdev
In-Reply-To: <20040124223109.1c134ca1.rddunlap@osdl.org>

Most of these patches you're sending are already in netdev-2.6, AFAICS...

	Jeff

^ permalink raw reply

* Re: [patch 11/18] gcc-3.5: ne2k-pci.c
From: Jeff Garzik @ 2004-01-25 16:35 UTC (permalink / raw)
  To: akpm; +Cc: davem, netdev
In-Reply-To: <200401251107.i0PB7ko25097@mail.osdl.org>

I'll pick this and the other drivers/net ones (except for tg3) up.

	Jeff

^ permalink raw reply

* Samba
From: Josh Lamb @ 2004-01-25 16:35 UTC (permalink / raw)
  To: linux-newbie

Hello,

I recently switched to linux because I was curious what else was out there
and was very annoyed with windows's mismanaged multitasking.  So I went and
bought Slackware after trying knoppix for a short while. I know Slack is
sometimes not recommended for newbies, but I think it is the best way to
learn linux because it really forced me to learn new things.

My question: Can you recommend any books that deal more with networking, I
am having troubles trying to set up a Samba server? I also want to be able
to set up Apache and BIND? OH, and one more, does anyone have a good text on
using a good linux server to serve a lot of thin clients?

thanks for your time


end

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply

* Re: Kernels > 2.6.1-mm3 do not boot.
From: Valdis.Kletnieks @ 2004-01-25 16:28 UTC (permalink / raw)
  To: Fabio Coatti; +Cc: Adrian Bunk, Eric, linux-kernel
In-Reply-To: <200401251639.56799.cova@ferrara.linux.it>

[-- Attachment #1: Type: text/plain, Size: 628 bytes --]

On Sun, 25 Jan 2004 16:39:56 +0100, Fabio Coatti said:

>   gcc -Wp,-MD,fs/.dcache.o.d -nostdinc -iwithprefix include -D__KERNEL__ 
> -Iinclude  -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs 
> -fno-strict-aliasing -fno-common -pipe -msoft-float 
> -mpreferred-stack-boundary=2 -march=pentium4 -Iinclude/asm-i386/mach-default 
> -O2 -fomit-frame-pointer -funit-at-a-time     -DKBUILD_BASENAME=dcache 
> -DKBUILD_MODNAME=dcache -c -o fs/.tmp_dcache.o fs/dcache.c

Does it work if you disable -funit-at-a-time?  I had a problem with that
totally wedging a kernel right after the decompressing/loading messages.

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply

* Re: howto configuring kernel and modules.conf for automatic loading of ide-scsi
From: Ray Olszewski @ 2004-01-25 16:28 UTC (permalink / raw)
  To: linux-newbie
In-Reply-To: <20040125140656.023f0ced.agri@desnol.ru>

At 02:06 PM 1/25/2004 +0300, Agri wrote:
>thanks for answers, but....
>the only thing i get: there is no way to configure loading of ide-scsi "ON 
>DEMAND".
>Am i right?
[old stuff deleted]

I alswys hate to say that a statement like yours is correct ... there are 
so many different ways of doing things on Linux/Unix systems, it may be 
merely that I do not know the one that will solve your problem ... but I do 
believe that there is no way to use "on demand" loading in this case ... 
or, in fact, any case that involves access to filesystems. The only way for 
you to be certain of that, though, it to wait and see whether someone else, 
someone who knows a different bag of tricks from mine, suggests a method 
that works for you.

I am also sorry if my prior response was so poorly phrased that that is the 
"only thing [you] get" from it. I was attempting to be more helpful than that.



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply

* Re: Kernels > 2.6.1-mm3 do not boot.
From: Adrian Bunk @ 2004-01-25 16:21 UTC (permalink / raw)
  To: Fabio Coatti; +Cc: Eric, linux-kernel
In-Reply-To: <200401251639.56799.cova@ferrara.linux.it>

On Sun, Jan 25, 2004 at 04:39:56PM +0100, Fabio Coatti wrote:
>...
> > If this kernel works, please try -mm4 with disabled SMP support and
> > support for the Athlon (and no other CPUs).
> 
> Doesn't work
> 
> > If you compile with
> >   make V=1
> 
>   gcc -Wp,-MD,fs/.dcache.o.d -nostdinc -iwithprefix include -D__KERNEL__ 
> -Iinclude  -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs 
> -fno-strict-aliasing -fno-common -pipe -msoft-float 
> -mpreferred-stack-boundary=2 -march=pentium4 -Iinclude/asm-i386/mach-default 
> -O2 -fomit-frame-pointer -funit-at-a-time     -DKBUILD_BASENAME=dcache 
> -DKBUILD_MODNAME=dcache -c -o fs/.tmp_dcache.o fs/dcache.c

What's your gcc version ("gcc --version")?

Could you back out ("patch -p1 -R < ..." or manually remove the lines) 
the patch below and retry?

TIA
Adrian


diff -puN Makefile~use-funit-at-a-time Makefile
--- 25/Makefile~use-funit-at-a-time	2004-01-14 00:56:05.000000000 -0800
+++ 25-akpm/Makefile	2004-01-14 00:56:05.000000000 -0800
@@ -445,6 +445,10 @@ ifdef CONFIG_DEBUG_INFO
 CFLAGS		+= -g
 endif
 
+# Enable unit-at-a-time mode when possible. It shrinks the
+# kernel considerably.
+CFLAGS += $(call check_gcc,-funit-at-a-time,)
+
 # warn about C99 declaration after statement
 CFLAGS += $(call check_gcc,-Wdeclaration-after-statement,)
 

_

^ permalink raw reply

* Re: [Bluez-users] Cannot start bluepin
From: Michael Neumeier @ 2004-01-25 16:19 UTC (permalink / raw)
  To: bluez-users
In-Reply-To: <1075046122.5170.53.camel@baroque.rococosoft.com>

Yes, I am running X. And I suppose that I have the right to use the
display, as I tried to start bluepin under a console running in KDE
(3.1.5). 
I already thought in the same direction, but I guess this must be a
special thing because I had never problems to use my display.

Am So, den 25.01.2004 schrieb Stephen Crane um 16:55:
> Are you running X? Does the user under which you are running bluepin
> have permission to use DISPLAY? (Test this by trying to start an xterm.
> If this fails, see xauth.)
> 
> On Sun, 2004-01-25 at 08:28, Michael Neumeier wrote:
> > When I try to start bluepin (only for testing purposes, no device
> > connected) I get follwoing message:
> > 
> >   File "/bin/bluepin", line 34, in ?
> >     from gtk import *
> >   File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line
> > 43, in ?
> >     from _gtk import *
> > RuntimeError: could not open display
> > 
> > I tried to update the python.packages, but this didn´t solve the
> > problem. 
> > Any ideas?
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > The SF.Net email is sponsored by EclipseCon 2004
> > Premiere Conference on Open Tools Development and Integration
> > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> > http://www.eclipsecon.org/osdn
> > _______________________________________________
> > Bluez-users mailing list
> > Bluez-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bluez-users



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply

* Re: More on i/o wait problems ->
From: Martin Josefsson @ 2004-01-25 16:15 UTC (permalink / raw)
  To: Jaakko Helminen; +Cc: linux-kernel
In-Reply-To: <20040125153352.GA23360@ihme.org>

[-- Attachment #1: Type: text/plain, Size: 354 bytes --]

On Sun, 2004-01-25 at 16:33, Jaakko Helminen wrote:
> I switched back to 2.6.0 and it works like a charm, 10,8MBps over 100M LAN
> with http. Something's definitely broken in 2.6.1.

Yes a hardly tested readahead patch somehow got integrated.
I/O sucks bigtime in 2.6.1
Try the latest -mm or -bk kernels, it should be fixed there.

-- 
/Martin

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply

* [Qemu-devel] QEMU 0.5.2
From: Fabrice Bellard @ 2004-01-25 16:16 UTC (permalink / raw)
  To: qemu-devel

Hi,

QEMU 0.5.2 is out. A statically linked binary distribution for i386 is 
also available. There are still many known problems (see the TODO list 
!), but more OSes are working.

version 0.5.2:

   - improved soft MMU speed (assembly functions and specializing)
   - improved multitasking speed by avoiding flushing TBs when
     switching tasks
   - improved qemu-fast speed
   - improved self modifying code handling (big performance gain in
     softmmu mode).
   - fixed IO checking
   - fixed CD-ROM detection (win98 install CD)
   - fixed addseg real mode bug (GRUB boot fix)
   - added ROM memory support (win98 boot)
   - fixed 'call Ev' in case of paging exception
   - updated the script 'qemu-binfmt-conf.sh' to use QEMU automagically
     when launching executables for the supported target CPUs.
   - PowerPC system emulation update (Jocelyn Mayer)
   - PC floppy emulation and DMA fixes (Jocelyn Mayer)
   - polled mode for PIC (Jocelyn Mayer)
   - fixed PTE dirty bit handling
   - fixed xadd same reg bug
   - fixed cmpxchg exception safeness
   - access to virtual memory in gdb stub
   - task gate and NT flag fixes
   - eflags optimisation fix for string operations

Fabrice.

^ permalink raw reply

* [linux-lvm] Kernel 2.6.1 and LVM2
From: John Cassidy @ 2004-01-25 16:14 UTC (permalink / raw)
  To: linux-lvm


[-- Attachment #1.1: Type: text/plain, Size: 761 bytes --]

Heinz,

 

        on the above kernel, all of the necessary steps have been taken to
get LVM2 to function.

 

My problem is I want an appropriate startup script to initiate and halt
LVM2 at startup and shutdown.

 

Distribution is RH Fedora with kernel 2.6.1.

 

Any ideas?

 

Im voraus..    

 

Regards/Cordialement/Gruss/Saludos 

John Cassidy Dipl.-Ing (Informatique)

S390 & zSeries Systems Engineering

Schleswigstr. 7

D-51065 Cologne

EU

Tel: +49  (0) 221 61 60 777 . GSM: +49  (0) 177 799 58 56 

E-Mail: Sean@JDCassidy.net  <mailto:Sean@JDCassidy.net> 

HTTP :
<file:///H:\Documents%20and%20Settings\Horace\Application%20Data\Microsoft\S
ignatures\www.jdcassidy.net> www.jdcassidy.net 

   

 


[-- Attachment #1.2: Type: text/html, Size: 5642 bytes --]

[-- Attachment #2: image001.jpg --]
[-- Type: image/jpeg, Size: 5675 bytes --]

^ permalink raw reply

* [linux-lvm] [patch] lvm2 and md component devices
From: Luca Berra @ 2004-01-25 16:14 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1232 bytes --]

At the moment lvm2 scans devices according to filters in lvm.conf
There is also provisioning to ignore md component device if an md device
is found with the same uuid.

This approach becomes a problem when the md device is not activated and
the _unwary_ user did not set up a filter in lvm.conf.

The attached patch aims to fix this issue in a way that should be
transparent to the user.

It modifies _find_labeller in lib/label/label.c to look for md
superblock signature in the component device and ignore the device if
found.

In order to achieve this i had to modify lib/device/dev-io.c to use
lseek64 in place of lseek (i don't think there is any advantage in using
_llseek).

It build and works as expected on my test system (mandrake cooker), but
i would like some comments on it.

I did not remove yet the check for duplicate pv and md in
lib/cache/lvmcache.c and lib/format1/disk-rep.c, but i believe it can be
removed if my patch is ok.

Forcing the user zero the md superblock (using mdadm) before using the
device as a pv does not seem a bad side-effect.

Regards,
L.

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

[-- Attachment #2: lvm2-skipmd.patch --]
[-- Type: text/plain, Size: 2242 bytes --]

--- LVM2.2.00.08/lib/device/dev-io.c.skipmd	2004-01-24 19:11:29.000000000 +0100
+++ LVM2.2.00.08/lib/device/dev-io.c	2004-01-25 02:24:50.056433529 +0100
@@ -41,11 +41,9 @@
 #  endif
 #endif
 
-
-/* FIXME Use _llseek for 64-bit
-_syscall5(int,  _llseek,  uint,  fd, ulong, hi, ulong, lo, loff_t *, res, uint, wh);
- if (_llseek((unsigned) fd, (ulong) (offset >> 32), (ulong) (offset & 0xFFFFFFFF), &pos, SEEK_SET) < 0) { 
-*/
+#ifndef __dietlibc__
+extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
+#endif
 
 static LIST_INIT(_open_devices);
 
@@ -76,7 +74,7 @@
 		return 0;
 	}
 
-	if (lseek(fd, (off_t) where->start, SEEK_SET) < 0) {
+	if (lseek64(fd, where->start, SEEK_SET) < 0LL) {
 		log_sys_error("lseek", dev_name(where->dev));
 		return 0;
 	}
@@ -318,7 +316,7 @@
 #endif
 
 	if ((flags & O_CREAT) && !(flags & O_TRUNC)) {
-		dev->end = lseek(dev->fd, (off_t) 0, SEEK_END);
+		dev->end = lseek64(dev->fd, 0, SEEK_END);
 	}
 
 	list_add(&_open_devices, &dev->open_list);
--- LVM2.2.00.08/lib/label/label.c.skipmd	2003-08-26 23:12:05.000000000 +0200
+++ LVM2.2.00.08/lib/label/label.c	2004-01-25 02:22:05.309194536 +0100
@@ -98,6 +98,11 @@
 	return NULL;
 }
 
+#define MD_SB_MAGIC     0xa92b4efc
+#define MD_RESERVED_BYTES       (64 * 1024)
+#define MD_RESERVED_SECTORS     (MD_RESERVED_BYTES / SECTOR_SIZE)
+#define MD_NEW_SIZE_SECTORS(x)      ((x & ~(MD_RESERVED_SECTORS - 1)) - MD_RESERVED_SECTORS)
+
 static struct labeller *_find_labeller(struct device *dev, char *buf,
 				       uint64_t *label_sector)
 {
@@ -108,12 +113,26 @@
 	uint64_t sector;
 	int found = 0;
 	char readbuf[LABEL_SCAN_SIZE];
+	uint32_t md_magic;
 
 	if (!dev_open(dev)) {
 		stack;
 		return NULL;
 	}
 
+	/* check if it is an md component device */
+	dev_get_size(dev, &sector);
+	if (sector > MD_RESERVED_SECTORS*2) {
+		sector = MD_NEW_SIZE_SECTORS(sector);
+		sector *= SECTOR_SIZE; 
+		if (dev_read(dev, sector, sizeof(uint32_t), &md_magic)) {
+			if (md_magic == MD_SB_MAGIC) {
+				log_very_verbose("%s: Skipping md component device", dev_name(dev));
+				goto out;
+			}
+		}
+	}
+
 	if (!dev_read(dev, UINT64_C(0), LABEL_SCAN_SIZE, readbuf)) {
 		log_debug("%s: Failed to read label area", dev_name(dev));
 		goto out;

^ permalink raw reply

* Re: running masm611 inside dosemu and freedos
From: Ged Haywood @ 2004-01-25 16:10 UTC (permalink / raw)
  To: Matthew Wilson; +Cc: linux-msdos
In-Reply-To: <20040125143845.GB8151@frank.overlook.homelinux.net>

Hi there,

On Sun, 25 Jan 2004, Matthew Wilson wrote:

> I could compile and run a simple hello.asm program that my professor
> gave us to test to make sure we had installed masm correctly ...
> maybe some later more complicated assignment won't work in this setup.
> Does anyone that understands the internals of this stuff (assembly,
> dosemu, freedos) see any reason why assembly programming won't work?

If you can _assemble_ and run your hello.asm program then I'd be very
surprised if you will have the time during your course to write anything
which will give MASM any trouble.  I have used DOSEMU to compile and
assemble a program of over 100,000 lines of C.  Are there no sources
with your book that you can try to see if more complex code will be OK?

You will find many assembler sources on the Web to try, but make sure
that they don't expect anything in the system that you don't have (such
(as libraries etc.) or you'll be going off on a wild goose chase.  A
quick search on Google revealed over 6,000 hits when I asked for the 
words "MASM ASSEMBLER SOURCE", here's one of them:

http://www.movsd.com/source.htm

I'm sure that there'll be lots there for you to learn.

Of course if you have a Linux box you probably have a very much better
assembler than MASM on the box already, and there are certainly free
ones that you can download.

Being able to handle assembly language is a useful skill and learning
it is a very good introduction to using parts of a computer.  Assembler
is where it all started and it's indispensable, but be aware that
relatively little coding is done in assembler thesedays.

73,
Ged.


^ permalink raw reply

* Re: partitioning
From: chuck @ 2004-01-25 16:08 UTC (permalink / raw)
  To: S. Barret Dolph; +Cc: linux-newbie
In-Reply-To: <200401252137.39975.wheds8@ms66.hinet.net>

Hi, S.:

 The output of 'df' might be more meaningful.

If you mounted sda7 as /
 and mounted sda1 as /boot
 Would it satisfy all your free space concerns?
:-|
HTH, Chuck

"S. Barret Dolph" wrote:
> 
> I am probably getting too picky about repartitioning my drive but I want it to
> be set up for a long time. I never use all the space in my harddrive even
> though it is relatively small. (I only use it for work and don't play any
> games.)
> 
> Questions......
> 
> My old setup
> 
> sda1    /               1g
> sda5            /swap   1024k  (512ram)
> sda6            /usr            6g
> sda7            /home   10g
> 
> I will be using Sourcemage which puts sources in /var so I have been thinking
> about taking 3g out of home and making a /var of 3g.
> 
>  I will probably take another 3 out of home and add it to usr/ but that is
> probably overkill. Neither use too much.
> 
> I am confused about where /swap should go. I have a SCSI drive and from what I
> read that should be on the outside. So should I put /swap at sda8? (Given
> that I have added /var.)
> 
> I had a /home because it was convenient to upgrade with CD's when I only had a
> 56 modem. Now that I am using a source based installation is the /home
> unnecessary as I am the only user.
> 
> Is having a /tmp partition necessary?

probably

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply

* [PATCH] Hydra Mac I/O
From: Geert Uytterhoeven @ 2004-01-25 16:05 UTC (permalink / raw)
  To: Linux/PPC Development


Woops, forgot the subject. Repost...

---------- Forwarded message ----------
Date: Sun, 25 Jan 2004 12:31:02 +0100 (MET)
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Paul Mackerras <paulus@samba.org>,
     Benjamin Herrenschmidt <benh@kernel.crashing.org>,
     Tom Rini <trini@kernel.crashing.org>
Cc: Linux/PPC Development <linuxppc-dev@lists.linuxppc.org>

	Hi,

This patch converts <asm/hydra.h> to use explicit-sized types.
It also applies to 2.4.

--- linux-ppc-2.6.0/include/asm-ppc/hydra.h.orig	2003-12-18 10:19:34.000000000 +0100
+++ linux-ppc-2.6.0/include/asm-ppc/hydra.h	2004-01-21 22:30:39.000000000 +0100
@@ -27,28 +27,28 @@

 struct Hydra {
     /* DBDMA Controller Register Space */
-    char Pad1[0x30];
-    u_int CachePD;
-    u_int IDs;
-    u_int Feature_Control;
-    char Pad2[0x7fc4];
+    u8 Pad1[0x30];
+    u32 CachePD;
+    u32 IDs;
+    u32 Feature_Control;
+    u8 Pad2[0x7fc4];
     /* DBDMA Channel Register Space */
-    char SCSI_DMA[0x100];
-    char Pad3[0x300];
-    char SCCA_Tx_DMA[0x100];
-    char SCCA_Rx_DMA[0x100];
-    char SCCB_Tx_DMA[0x100];
-    char SCCB_Rx_DMA[0x100];
-    char Pad4[0x7800];
+    u8 SCSI_DMA[0x100];
+    u8 Pad3[0x300];
+    u8 SCCA_Tx_DMA[0x100];
+    u8 SCCA_Rx_DMA[0x100];
+    u8 SCCB_Tx_DMA[0x100];
+    u8 SCCB_Rx_DMA[0x100];
+    u8 Pad4[0x7800];
     /* Device Register Space */
-    char SCSI[0x1000];
-    char ADB[0x1000];
-    char SCC_Legacy[0x1000];
-    char SCC[0x1000];
-    char Pad9[0x2000];
-    char VIA[0x2000];
-    char Pad10[0x28000];
-    char OpenPIC[0x40000];
+    u8 SCSI[0x1000];
+    u8 ADB[0x1000];
+    u8 SCC_Legacy[0x1000];
+    u8 SCC[0x1000];
+    u8 Pad9[0x2000];
+    u8 VIA[0x2000];
+    u8 Pad10[0x28000];
+    u8 OpenPIC[0x40000];
 };

 extern volatile struct Hydra *Hydra;

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply

* Re: 2.4.25pre7 - cannot mount 128MB vfat fs on Minolta camera
From: OGAWA Hirofumi @ 2004-01-25 16:03 UTC (permalink / raw)
  To: Marc Mongenet; +Cc: linux-kernel
In-Reply-To: <4013D155.3080900@freesurf.ch>

Marc Mongenet <Marc.Mongenet@freesurf.ch> writes:

> Hi, I have a Minolta DiMAGE F100 camera and two memory cards,
> a 16 MB and a 128 MB.
> With kernel 2.2.25 I can mount the 16 MB but not the 128 MB.
> With kernel 2.4.16 to 2.4.25pre6 I can mount the 128 MB but not the 16 MB.
> With kernel 2.4.25pre7 I can mount the 16 MB but not the 128 MB.
> 
> There is probably something special with the filesystem used by Minolta
> because I have to format it with the camera to be recognized by the camera.

What error did you get? Please send output of dmesg and first
256KB of 128MB card.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

^ permalink raw reply

* Re: [Bluez-users] Cannot start bluepin
From: Stephen Crane @ 2004-01-25 15:55 UTC (permalink / raw)
  To: Michael Neumeier; +Cc: bluez-users
In-Reply-To: <1075019314.2741.5.camel@matos.local>

Are you running X? Does the user under which you are running bluepin
have permission to use DISPLAY? (Test this by trying to start an xterm.
If this fails, see xauth.)

On Sun, 2004-01-25 at 08:28, Michael Neumeier wrote:
> When I try to start bluepin (only for testing purposes, no device
> connected) I get follwoing message:
>=20
>   File "/bin/bluepin", line 34, in ?
>     from gtk import *
>   File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line
> 43, in ?
>     from _gtk import *
> RuntimeError: could not open display
>=20
> I tried to update the python.packages, but this didn=B4t solve the
> problem.=20
> Any ideas?
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
--=20
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
steve.crane@rococosoft.com +353-1-6601315 (ext 209)



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply

* 2.6.2-rc1-mm2: sleep_on_timeout with parport
From: Jan Ischebeck @ 2004-01-25 15:55 UTC (permalink / raw)
  To: Andrew Morton; +Cc: lkml
In-Reply-To: <20040123103959.4dcf5b58.akpm@osdl.org>

Trying to print without switching the printer on I got the following
error messages.

lp0 out of paper
Badness in interruptible_sleep_on_timeout at kernel/sched.c:2245
Call Trace:
 [<c0121a6f>] interruptible_sleep_on_timeout+0x10f/0x120
 [<c0121500>] default_wake_function+0x0/0x20
 [<e0a34e5f>] parport_release+0x7f/0x140 [parport]
 [<e0a10180>] lp_error+0x40/0xc0 [lp]
 [<e0a10289>] lp_check_status+0x89/0xd0 [lp]
 [<e0a10318>] lp_wait_ready+0x48/0x80 [lp]
 [<e0a1066a>] lp_write+0x31a/0x3e0 [lp]
 [<e0a10350>] lp_write+0x0/0x3e0 [lp]
 [<c015bee8>] vfs_write+0xb8/0x130
 [<c02f298c>] common_interrupt+0x18/0x20
 [<c015c012>] sys_write+0x42/0x70
 [<c02f1fa7>] syscall_call+0x7/0xb


-- 
Jan Ischebeck <mail@jan-ischebeck.de>


^ permalink raw reply

* Re: Discontiguous memory issue
From: Martin J. Bligh @ 2004-01-25 15:49 UTC (permalink / raw)
  To: Aman, MM Linux
In-Reply-To: <BAY9-DAV24DwVCAwCfZ00015113@hotmail.com>

> I am working on a customized board which has S3C2410 as its processor.
> I have applied the following Linux patches patch-2.4.18-rmk6 and 
> patch-2.4.18-RMK6-SWL5.
> There are  two types of custom hardware with me. One has 64MB contiguous
> SDRAM and the other has 32 MB with following discontiguous physical 
> memory  map.
> 
> 1. 0x30000000 to 0x307fffff size is 8MB
> 2. 0x31000000 to 0x317fffff size is 8MB
> 3. 0x32000000 to 0x327fffff size is 8MB
> 4. 0x33000000 to 0x337fffff size is 8MB
> 
> RAMDISK location 0x31000000 (Maximum size is 7 MB) and ZIMAGE
> location 0x31700000
> 
> In the 64 MB hardware, Linux runs without any issues. Because the patch is
> for 64MB  contiguous memory. I am able to boot the 32 MB hardware 
> with the same kernel used for 64MB. But in 32MB hardware, it crashes 
> when I  run some of our applications. I assume that this is because the 
> kernel is not configured for the discontiguous memory map.
> 
> I did the following changes to support discontiguous memory.
> 
> 1. I changed the MEM_SIZE macro to 32 * 1024 * 1024
> (include/as/arch/s3c2410.h)
> 2. Changed the macros in the include/asm/arch/memory.h
> 3. modified the fixup_s3c2410 () function in 
> arch/arm/mach-s3c2410/arch.c to support 4 memory banks.
> 4. Enabled CONFIG_DISCONTIGMEM option
> 
> After doing the above changes, Linux crashes during the bootup.
> Is my understanding correct ?
> I have attached the modified files.
> Any help regarding the discontiguous memory configuration will be grateful.
> 
> Thanking you in advance.

Where exactly during bootup are you crashing? If it's before console_init,
you're going to have some kind of early printk function to do a crude dump
to the screen or serial port or something. If it's after, then dump all 
the pgdats, and see if it looks good.

Fundamentally, you need to create the pgdats, and fill them out properly,
describing to the main VM where your memory regions start and end. Most
of them are in pfn units (page frame number = physaddr / PAGE_SIZE).
I didn't bother sorting through your files to see if you're doing that ;-)

M.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply


This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.