<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>35337</bug_id>
          
          <creation_ts>2018-09-03 15:13:41 +0300</creation_ts>
          <short_desc>не поддерживается актуальная версия xfs (V5)</short_desc>
          <delta_ts>2021-09-04 14:00:42 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p8</product>
          <component>xfsprogs</component>
          <version>не указана</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Sheplyakov">asheplyakov</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>rider</cc>
          
          <qa_contact name="qa-p8@altlinux.org">qa-p8</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>173844</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Sheplyakov">asheplyakov</who>
    <bug_when>2018-09-03 15:13:41 +0300</bug_when>
    <thetext>Начиная с Linux 3.15 по умолчанию используется XFS версии 5 (см. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c99d609a). Однако поставляемые в p8 утилиты не работают с этой версией XFS.

wget -N https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2.xz
xz -d -k CentOS-7-x86_64-GenericCloud.qcow2.xz
qemu-img convert -f qcow2 -O raw CentOS-7-x86_64-GenericCloud.qcow2 CentOS-7-x86_64-GenericCloud.raw
dd if=CentOS-7-x86_64-GenericCloud.raw of=CentOS-7-x86_64-GenericCloud.rootfs bs=1M skip=1

/sbin/xfs_repair -f ./CentOS-7-x86_64-GenericCloud.rootfs 
Phase 1 - find and verify superblock...
bad primary superblock - bad or unsupported version !!!

attempting to find secondary superblock.............
[зависает]

/usr/sbin/xfs_copy -d CentOS-7-x86_64-GenericCloud.rootfs CentOS-7-x86_64-GenericCloud.rootfs.clone
xfs_copy: WARNING - filesystem uses v1 dirs,limited functionality provided.
cache_node_purge: refcount was 1, not zero (node=0x660a30)
xfs_copy: cannot read root inode (117)
xfs_copy: CentOS-7-x86_64-GenericCloud.rootfs filesystem failed to initialize
xfs_copy: Aborting.

При этом файловая система не повреждена:

sudo mount -o ro,loop,nodev,nosuid CentOS-7-x86_64-GenericCloud.rootfs /mnt
/mnt/sbin/xfs_repair -f ./CentOS-7-x86_64-GenericCloud.rootfs 
Phase 1 - find and verify superblock...
Cannot get host filesystem geometry.
Repair may fail if there is a sector size mismatch between
the image and the host filesystem.
Phase 2 - using internal log
        - zero log...
        - scan filesystem freespace and inode maps...
        - found root inode chunk
Phase 3 - for each AG...
        - scan and clear agi unlinked lists...
        - process known inodes and perform inode discovery...
        - agno = 0
        - agno = 1
        - agno = 2
        - agno = 3
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 0
        - agno = 3
        - agno = 1
        - agno = 2
Phase 5 - rebuild AG headers and trees...
        - reset superblock...
Phase 6 - check inode connectivity...
        - resetting contents of realtime bitmap and summary inodes
        - traversing filesystem ...
        - traversal finished ...
        - moving disconnected inodes to lost+found ...
Phase 7 - verify and correct link counts...
done

sudo chroot /mnt /bin/bash --login
cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202333</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2021-09-04 14:00:42 +0300</bug_when>
    <thetext>в p8 не будет обновлён xfsprogs до актуального состояния. Используйте более новые репозитории.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>