Package: e2fsprogs
Version: 1.40.2-1
Severity: normal

   mke2fs and tune2fs use strtod() for the -m argument, apparently
allowing for fine-tuning the -m flag. However they call e2p_percent
with this argument, which is implicitely cast to an int, therefore
losing anything after the decimal separator.

   Given that e2p_percent is used in a few other places, I am not
sure which patch to suggest: it looks to me like the whole function
could be replaced with "return (unsigned int)(percent * base / 100.0);"
because the "double" type has enough precision to care for all cases,
but that would render the function pretty useless.

   The feature is really interesting with today's disk sizes. Currently,
on a 800 GB partition, I can only reserve 0 GB or 8 GB for root, nothing
inbetween.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23.8 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages e2fsprogs depends on:
ii  e2fslibs                      1.40.2-1   ext2 filesystem libraries
ii  libblkid1                     1.40.2-1   block device id library
ii  libc6                         2.7-0exp8  GNU C Library: Shared libraries
ii  libcomerr2                    1.40.2-1   common error description library
ii  libss2                        1.40.2-1   command-line interface parsing lib
ii  libuuid1                      1.40.2-1   universally unique id library

e2fsprogs recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to