Package: dosfstools
Version: 3.0.27-1
Severity: normal
Tags: upstream

Dear Maintainer,

fatlabel prints warnings to stdout before the label of the filesystem:

# parted /dev/loop0 print
Model: Loopback device (loopback)
Disk /dev/loop0: 10000kB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name       Flags
 1      1049kB  2097kB  1049kB  ext2            namefoo1
 2      2097kB  3146kB  1049kB  fat32           namebar2   msftdata
 3      3146kB  4194kB  1049kB  linux-swap(v1)  nameswap3

# fatlabel /dev/loop0p2 2>/dev/null
Warning: Filesystem is FAT32 according to fat_length and fat32_length fields,
  but has only 1984 clusters, less than the required minimum of 65525.
  This may lead to problems on some systems.
fatn2      

I think the warnings should be printed to stderr.

As a workaround, scripts using fatlabel can pipe the output to "tail -n 1"

-- System Information:
Debian Release: 8.2
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dosfstools depends on:
ii  libc6  2.19-18+deb8u1

dosfstools recommends no packages.

dosfstools suggests no packages.

-- no debconf information

Reply via email to