Refuses to create > 2048MB swapfile

Bug #270180 reported by jacob.elder@gmail.com
8
Affects Status Importance Assigned to Milestone
dphys-swapfile (Debian)
Fix Released
Unknown
dphys-swapfile (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: dphys-swapfile

As far as I can tell, the maximum swap file size logic in the script is related to a long-gone bug in mkswap. mkswap will happily create files beyond 2GB now, and systems with well over 2GB RAM are common. The attached patch removes this logic. Tested successfully on on amd64 with XFS.

Description: Ubuntu 8.04.1
Release: 8.04
dphys-swapfile:
  Installed: 20061020-1
  Candidate: 20061020-1
  Version table:
 *** 20061020-1 0
        500 http://us.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
jacob.elder@gmail.com (jacob-elder) wrote :
Revision history for this message
Jim Qode (jimqode) wrote :
Changed in dphys-swapfile:
status: Unknown → New
Revision history for this message
James Westby (james-w) wrote :

Uploaded, thanks for your contribution.

James

Changed in dphys-swapfile:
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dphys-swapfile - 20061020-1ubuntu1

---------------
dphys-swapfile (20061020-1ubuntu1) intrepid; urgency=low

  * applied patch from <email address hidden> to remove max swap file size
    logic (LP: #270180)

 -- Jim Qode <email address hidden> Tue, 16 Sep 2008 14:12:18 +0300

Changed in dphys-swapfile:
status: Fix Committed → Fix Released
Revision history for this message
Axel Beckert (xtaran) wrote : Patch for Debian Bug #502200 (LP#270180) will be removed from the Debian package with the next upload

Hi,

the patch which removes the max swap file size logic from
dphys-swapfile will be removed with the next upload of dphys-swapfile
to Debian because it is harmful and mostly unnecessary:

a) Without that patch dphys-swapfile would not have gone havoc as
   reported in http://bugs.debian.org/564466

b) The maximum swap file size is configurable in /etc/dphys-swapfile.

c) The patch removed a useful feature (configurable max swap file size).

Nevertheless I will ensure that there is no limit to the swap file
size if MAXSWAP (or maybe CONF_MAXSWAP) is set to the empty string or
zero in "/etc/dphys-swapfile".

I'll also add information about the possibility to configure the max
swap size as well as the factor in "/etc/dphys-swapfile" to the man
page and will suggest to the upstream author to make both officially
configurable (i.e. starting with "CONF_").

 Regards, Axel (upcoming maintainer of dphys-swapfile in Debian)
--
 ,''`. | Axel Beckert <email address hidden>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
  `- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5

Changed in dphys-swapfile (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.