[Bug 956762] Re: gparted-partition-manager has a bad default action

Phillip Susi psusi at ubuntu.com
Fri Mar 16 14:42:19 UTC 2012


It looks like this is a bug in ntfs-3g.  ntfsresize is prompting if it
is ok to proceed, but since its stdin is connected to /dev/null, it
refuses to proceed.  ntfsresize should not be attempting an interactive
prompt when it is not connected to a tty, and I'm not sure why it is
prompting in the first place.  It looks like it is caused by the dirty
volume flag since it does not prompt the first time it is run on a clean
volume, then does prompt when run again ( because the first run set the
dirty flag ).


** Also affects: ntfs-3g (Ubuntu)
   Importance: Undecided
       Status: New

** Summary changed:

-  gparted-partition-manager has a bad default action
+ ntfsresize prompts ( on non tty ) and refuses to resize dirty volume

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gparted in Ubuntu.
https://bugs.launchpad.net/bugs/956762

Title:
  ntfsresize prompts ( on non tty ) and refuses to resize dirty volume

Status in “gparted” package in Ubuntu:
  New
Status in “ntfs-3g” package in Ubuntu:
  New

Bug description:
  ntfsresize prints a warning and prompts for input whether it should
  proceed or not in response to the dirty volume flag.  When stdin is
  connected to /dev/null, it refuses to proceed.  Interactive prompts
  should not be made when stdin is not a tty.  The --force flag should
  also cause the resize to proceed.

  Reproduction:

  mkfs.ntfs -f /dev/vg/ntfs
  ntfsfix /dev/vg/ntfs
  ntfsresize -P --force -s 1G /dev/vg/ntfs < /dev/null

  ntfsresize v2011.4.12AR.4 (libntfs-3g)
  Device name        : /dev/devserv/ntfs
  NTFS volume version: 3.1
  Cluster size       : 4096 bytes
  Current volume size: 5368705536 bytes (5369 MB)
  Current device size: 5368709120 bytes (5369 MB)
  New volume size    : 999993856 bytes (1000 MB)
  Checking filesystem consistency ...
  Accounting clusters ...
  Space in use       : 28 MB (0.5%)
  Collecting resizing constraints ...
  Needed relocations : 6554 (27 MB)
  WARNING: Every sanity check passed and only the dangerous operations left.
  Make sure that important data has been backed up! Power outage or computer
  crash may result major data loss!
  Are you sure you want to proceed (y/[n])? OK quitting. NO CHANGES have been made to your NTFS volume.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/956762/+subscriptions




More information about the foundations-bugs mailing list