Loading ...
Sorry, an error occurred while loading the content.

25207Bug in File, file_5.12-1_armeb.ipk

Expand Messages
  • Mike Lambert
    Jun 20, 2014
      I'm using http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ on
      an Asus RT-AC66U and when trying to identify an unmounted file system with


      $ file -Ls /dev/sdb1
      /dev/sdb1: Linux rev 1.0 ext3 filesystem data, UUID=[...], volume name
      "Optware" (needs journal recovery) (large files)
      Segmentation fault


      the point is not the seg fault, but the
      fact that the first line of output is "mystery output" which cannot be
      redirected or piped!


      $ file -Ls /dev/sdb1 1> out
      $ ls -l out
      -rw-rw-rw- 1 admin root 0 Jun 20 20:36 out


      $ file -Ls /dev/sdb1 2> out
      $ ls -l out
      -rw-rw-rw- 1 admin root 19 Jun 20 20:37 out
      $ cat out
      Segmentation fault


      This is an issue because as far as i know that'd be the only reliable way
      to find out the filesystem of an unmounted device (in this context, random
      usb key/disk user will plug into router).


      If 'file' worked properly it'd be easy to make a super fancy automated
      pre-mount script to check any file system...