Package: util-linux
Version: 2.19.1-5
Severity: wishlist
File: /sbin/mkfs

Yesterday, for some weird reason that we can attribute to Freudian
slip behaviour, I typed mkfs instead of fsck. I noticed, hit ctrl-c
in time and was able to recover the filesystem with a superblock
backup (ext4), but it made me think:

  - mdadm asks for confirmation when overwriting a superblock;
  - pvcreate asks for confirmation when overwriting a PV;
  - cryptsetup takes an extra step to ensure that you pause for
    a second and think;

… but mkfs just does, at least the ext[234] variants.

I know about Unix and foot shooting and rope to hang yourself and
all, but wouldn't it be worth considering adding such a check to
mkfs anyway, possibly with a -f|--force option to override it?

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

Kernel: Linux 3.1.0-rc4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages util-linux depends on:
ii  debconf [debconf-2.0]  1.5.41          
ii  dpkg                   1.16.1.1        
ii  initscripts            2.88dsf-13.11   
ii  install-info           4.13a.dfsg.1-8  
ii  libblkid1              2.19.1-5        
ii  libc6                  2.13-21         
ii  libncurses5            5.9-2           
ii  libselinux1            2.1.0-1         
ii  libslang2              2.2.4-3         
ii  libuuid1               2.19.1-5        
ii  lsb-base               3.2-28          
ii  tzdata                 2011l-1         
ii  zlib1g                 1:1.2.3.4.dfsg-3

util-linux recommends no packages.

Versions of packages util-linux suggests:
pn  dosfstools          3.0.9-1 
pn  kbd                 1.15.3-7
pn  util-linux-locales  <none>  

-- debconf information excluded


-- 
 .''`.   martin f. krafft <madduck@d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Reply via email to