Something wrong with swap files in 2.1.1xx

Khimenko Victor (khim@sch57.msk.ru)
Sun, 13 Dec 1998 02:44:01 +0300 (MSK)


This is with 2.1.126 but AFAIK it's not fixed even in latest kernels:
-- cut --
[root@localhost d-w95]# free
total used free shared buffers cached
Mem: 63200 15100 48100 17828 1092 7768
-/+ buffers/cache: 6240 56960
Swap: 0 0 0
[root@localhost d-w95]# swapon swapfile
[root@localhost d-w95]# free
total used free shared buffers cached
Mem: 63200 15132 48068 17828 1092 7768
-/+ buffers/cache: 6272 56928
Swap: 42896 0 42896
[root@localhost d-w95]# swapon swapfile
[root@localhost d-w95]# free
total used free shared buffers cached
Mem: 63200 15160 48040 17828 1092 7768
-/+ buffers/cache: 6300 56900
Swap: 85792 0 85792
[root@localhost d-w95]# swapoff swapfile
[root@localhost d-w95]# swapoff swapfile
[root@localhost d-w95]# swapoff swapfile
swapoff: swapfile: Invalid argument
[root@localhost d-w95]#
-- cut --
I.e. I'm could add swapfile more then once ! Yes, I know -- root should not
be stupid and so on but IMO this is little too much ...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/