← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1597522] Re: curtin passes wrong args to mkfs when making filesystem on advanced format disks

 

This bug is believed to be fixed in curtin in 17.1. If this is still a
problem for you, please make a comment and set the state back to New

Thank you.

** Changed in: curtin
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1597522

Title:
  curtin passes wrong args to mkfs when making filesystem on advanced
  format disks

Status in curtin:
  Fix Released
Status in curtin package in Ubuntu:
  Fix Released
Status in curtin source package in Xenial:
  Fix Released

Bug description:
  [Impact]

   * curtin passes wrong args to mkfs when making filesystem on advanced
     format disks (4k sector size)

     Curtin has been modified to only pass the '-s 1' sector-size flag 
     to the vfat formatting tools.  Curtin has been updated to specify
     the correct sector-size flags and values to other formatting
     utilities that support such settings.
     

  [Test Case]

   * Install proposed curtin package and attempt to format a disk with
     xfs filesystem using 4K logical blocksize for the disk.

    PASS: Ubuntu successfully installs with xfs filesystem on top of a
          4k Disk

    FAIL: Ubuntu fails to install with xfs filesystem on 4k disk.
          
  [Regression Potential]

   * Low; current users expecting xfs on 4k disks were blocked without
     this fix.

  
  [Original Description]
  During format handling, curtin detects the underlying block size of the disk and sets the filesystem block size accordingly.

  In order to properly handle a bug in mkfs.vfat, curtin adds the flag
  '-s 1'. However, curtin adds this flag to all disk format commands,
  not just to commands using 'mkfs.vfat'. This can lead to unexpected
  behavior with some formatting tools, and can cause installation to
  halt with others.

  For example, the mkfs.btrfs utility understands '-s' to mean
  sectorsize, so when curtin installs to an advanced format disk and
  storage config includes a btrfs formatted filesystem, curtin will
  create a filesystem that uses 1 byte sectors. This will greatly harm
  filesystem performance.

  For xfs volumes, this means that installation will fail completely, as
  the sectorsize attribute for xfs volumes must be specified in the
  format '-s size=512', so '-s 1' will cause mkfs.xfs to fail.

  Fortunately, this does not affect mkfs.ext* because these tools seem
  to silently ignore the '-s' flag, so most users likely have not been
  affected.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1597522/+subscriptions