mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-12 Thread BERECZ Szabolcs
Hi! root@kama3:/home/szabi# cat /proc/mounts ... /dev/hdb2 /usr ext2 rw 0 0 ... root@kama3:/home/szabi# swapon /dev/hdb2 set_blocksize: b_count 1, dev ide0(3,66), block 2, from c0126b48 set_blocksize: b_count 1, dev ide0(3,66), block 3, from c0126b48 set_blocksize: b_count 1, dev ide0(3,66), bloc

Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-12 Thread Alexander Viro
On Sun, 13 May 2001, BERECZ Szabolcs wrote: > Hi! > > root@kama3:/home/szabi# cat /proc/mounts > ... > /dev/hdb2 /usr ext2 rw 0 0 > ... > root@kama3:/home/szabi# swapon /dev/hdb2 - Doctor, it hurts when I do it! - Don't do it, then. Just what behaviour had you expected? - To unsubscribe fro

Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-12 Thread Matthew Dharm
I was under the impression that you need to call swapon on swap partitions, and not on mounted filesystems. Matt On Sun, May 13, 2001 at 01:00:39AM +0200, BERECZ Szabolcs wrote: > Hi! > > root@kama3:/home/szabi# cat /proc/mounts > ... > /dev/hdb2 /usr ext2 rw 0 0 > ... > root@kama3:/home/szabi#

Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-12 Thread BERECZ Szabolcs
On Sat, 12 May 2001, Alexander Viro wrote: > - Doctor, it hurts when I do it! > - Don't do it, then. > > Just what behaviour had you expected? maybe that I don't have to shutdown? I think it's a *bad* behaviour Bye, Szabi - To unsubscribe from this list: send the line "unsubscribe linux-kerne

Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-12 Thread Alan Cox
> > root@kama3:/home/szabi# cat /proc/mounts > > /dev/hdb2 /usr ext2 rw 0 0 > > root@kama3:/home/szabi# swapon /dev/hdb2 > > - Doctor, it hurts when I do it! > - Don't do it, then. > > Just what behaviour had you expected? EBUSY would be somewhat nicer. - To unsubscribe from this list: send the

Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-12 Thread Alexander Viro
On Sun, 13 May 2001, BERECZ Szabolcs wrote: > On Sat, 12 May 2001, Alexander Viro wrote: > > > - Doctor, it hurts when I do it! > > - Don't do it, then. > > > > Just what behaviour had you expected? > maybe that I don't have to shutdown? > I think it's a *bad* behaviour Erm... Let me restate:

Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-12 Thread BERECZ Szabolcs
On Sat, 12 May 2001, Matthew Dharm wrote: > I was under the impression that you need to call swapon on swap partitions, > and not on mounted filesystems. hmm. so we can remove every check for good values in the kernel. yeah, that would be pretty fast. yes, I know it's really unusual to call sys_s

Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-12 Thread Alexander Viro
On Sun, 13 May 2001, Alan Cox wrote: > > > root@kama3:/home/szabi# cat /proc/mounts > > > /dev/hdb2 /usr ext2 rw 0 0 > > > root@kama3:/home/szabi# swapon /dev/hdb2 > > > > - Doctor, it hurts when I do it! > > - Don't do it, then. > > > > Just what behaviour had you expected? > > EBUSY would

Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-12 Thread BERECZ Szabolcs
On Sat, 12 May 2001, Alexander Viro wrote: > > > Just what behaviour had you expected? > > maybe that I don't have to shutdown? > > I think it's a *bad* behaviour > > Erm... Let me restate: what did you expect to achieve with that? nothing I have an unused partition, what I use sometimes as fs, s

Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-12 Thread Guest section DW
On Sun, May 13, 2001 at 12:32:20AM +0100, Alan Cox wrote: > > > root@kama3:/home/szabi# cat /proc/mounts > > > /dev/hdb2 /usr ext2 rw 0 0 > > > root@kama3:/home/szabi# swapon /dev/hdb2 > > > > - Doctor, it hurts when I do it! > > - Don't do it, then. > > > > Just what behaviour had you expected?

Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-12 Thread ashridah
On Sun, 13 May 2001 01:00:39 +0200 (CEST), BERECZ Szabolcs said: > Hi! > > root@kama3:/home/szabi# cat /proc/mounts > ... > /dev/hdb2 /usr ext2 rw 0 0 > ... > root@kama3:/home/szabi# swapon /dev/hdb2 [snip] hmm. while the technical issues of this situation are fairly interesting, can i m

Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-13 Thread Jesse Pollard
On Sat, 12 May 2001, Alexander Viro wrote: >On Sun, 13 May 2001, Alan Cox wrote: > >> > > root@kama3:/home/szabi# cat /proc/mounts >> > > /dev/hdb2 /usr ext2 rw 0 0 >> > > root@kama3:/home/szabi# swapon /dev/hdb2 >> > >> > - Doctor, it hurts when I do it! >> > - Don't do it, then. >> > >> > Just

Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-13 Thread Gerhard Mack
On Sat, 12 May 2001, Alexander Viro wrote: > > > On Sun, 13 May 2001, BERECZ Szabolcs wrote: > > > On Sat, 12 May 2001, Alexander Viro wrote: > > > > > - Doctor, it hurts when I do it! > > > - Don't do it, then. > > > > > > Just what behaviour had you expected? > > maybe that I don't have to

Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

2001-05-13 Thread Alan Cox
> Erm... Let me restate: what did you expect to achieve with that? > Swap on device means that all contents of that device is lost. > Mounting fs from device generally means that you don't want the > loss of contents. At least until you unmount the thing. Actually no. There is no swap magic so th