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

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

    <bug>
          <bug_id>38119</bug_id>
          
          <creation_ts>2020-02-18 17:49:23 +0300</creation_ts>
          <short_desc>No way to create XFS with `-n ftype=1` flag</short_desc>
          <delta_ts>2020-02-19 10:48:09 +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>alterator-vm</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Svetlana">entr0pia</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          
          
          <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>187985</commentid>
    <comment_count>0</comment_count>
      <attachid>8620</attachid>
    <who name="Svetlana">entr0pia</who>
    <bug_when>2020-02-18 17:49:23 +0300</bug_when>
    <thetext>Created attachment 8620
vm-profile.scm draft

Hello guys. 

I have a necessity to create VM templates based on Alt Linux. And I encountered the following problem: there is no way to create XFS with `-n ftype=1` flag using `alterator-vm` package. 

I drafted attached .scm code as the vm-profile.scm and it works ok. But I can&apos;t use those templates for further docker installation, &apos;cause I catch «overlay2: the backing XFS filesystem is formatted without d_type support, which leads to incorrect behaviour.» error.

Maybe there is some way to pass params through the .scm profile but it&apos;s obscured for me. Official Alt wiki has no mention of such capabilities. 

--
best, Svetlana.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>187987</commentid>
    <comment_count>1</comment_count>
    <who name="Svetlana">entr0pia</who>
    <bug_when>2020-02-18 18:02:16 +0300</bug_when>
    <thetext>I have to add that I&apos;m using p9 version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>187992</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2020-02-18 18:40:18 +0300</bug_when>
    <thetext>(In reply to Svetlana from comment #0)

&gt; I have a necessity to create VM templates based on Alt Linux. And I
&gt; encountered the following problem: there is no way to create XFS with `-n
&gt; ftype=1` flag using `alterator-vm` package. 

alterator-vm uses mkfs.xfs internally, and ftype=1 is the default value
for it -- i believe there&apos;s no need to pass it explicitly.
are you sure you actually create new xfs filesystem ?

&gt; I drafted attached .scm code as the vm-profile.scm and it works ok. But I
&gt; can&apos;t use those templates for further docker installation, &apos;cause I catch
&gt; «overlay2: the backing XFS filesystem is formatted without d_type support,
&gt; which leads to incorrect behaviour.» error.

&gt; Maybe there is some way to pass params through the .scm profile but it&apos;s
&gt; obscured for me. Official Alt wiki has no mention of such capabilities. 

probably because they do not exist -- there&apos;s no way to pass such things down, sorry</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188002</commentid>
    <comment_count>3</comment_count>
    <who name="Svetlana">entr0pia</who>
    <bug_when>2020-02-18 19:16:47 +0300</bug_when>
    <thetext>Hello, Sergey. 
I&apos;m awfully sorry, I made a mistake. It&apos;s p8.

cat /proc/varsion:
&gt;&gt;Linux version 4.19.36-std-def-alt1 (builder@localhost.localdomain) 
&gt;&gt;(gcc version 8.3.1 20190311 (ALT Sisyphus 8.3.1-alt2) (GCC)) 
&gt;&gt;#1 SMP Mon Apr 22 19:38:57 UTC 2019

cat /etc/redhat-release:
&gt;&gt;ALT 8.2 Server

cat /etc/fstab:
&gt;&gt;proc		/proc			proc	nosuid,noexec,gid=proc		0 0
&gt;&gt;devpts	/dev/pts		devpts	nosuid,noexec,gid=tty,mode=620	0 0
&gt;&gt;tmpfs		/tmp			tmpfs	nosuid				0 0
&gt;&gt;UUID=333f6252-e5d9-4cdd-b729-dd325b85248e	/	xfs	relatime	1 1
&gt;&gt;UUID=eca01acf-d994-4ed7-b2a7-4ca8fb7502a7	/boot	xfs	nodev,nosuid,noexec,relatime 1 2
&gt;&gt;UUID=b49bfce1-23ff-42e5-a173-7b91b627f781	swap	swap	defaults	0 0

I do use exactly the same vm-profile.scm file as above.
Maybe any log file will aid you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188003</commentid>
    <comment_count>4</comment_count>
    <who name="Svetlana">entr0pia</who>
    <bug_when>2020-02-18 19:18:35 +0300</bug_when>
    <thetext>fs_info /
&gt;meta-data=/dev/sda5              isize=256    agcount=4, agsize=3080128 blks
&gt;         =                       sectsz=512   attr=2
&gt;data     =                       bsize=4096   blocks=12320512, imaxpct=25
&gt;         =                       sunit=0      swidth=0 blks
&gt;naming   =version 2              bsize=4096   ascii-ci=0
&gt;log      =internal               bsize=4096   blocks=1280, version=2
&gt;         =                       sectsz=512   sunit=0 blks, lazy-count=1
&gt;realtime =none                   extsz=4096   blocks=0, rtextents=0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188006</commentid>
    <comment_count>5</comment_count>
    <who name="Svetlana">entr0pia</who>
    <bug_when>2020-02-18 19:49:10 +0300</bug_when>
    <thetext>I figured out that p8 installation iso use xfsprogs v3.1.11 (Nov 2015)
And the latest is 5.4. 

Maybe back in 2015, there was no `-n ftype=1` option, and Alt dev team has to bump package version? I actually don&apos;t know. Please correct me if I&apos;m wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188012</commentid>
    <comment_count>6</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2020-02-19 10:48:09 +0300</bug_when>
    <thetext>Possible WONTFIX in unsupported branch.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>8620</attachid>
            <date>2020-02-18 17:49:23 +0300</date>
            <delta_ts>2020-02-18 17:49:23 +0300</delta_ts>
            <desc>vm-profile.scm draft</desc>
            <filename>vm-profile.scm</filename>
            <type>text/x-scheme</type>
            <size>283</size>
            <attacher name="Svetlana">entr0pia</attacher>
            
              <data encoding="base64">KCh3b3Jrc3RhdGlvbgogICh0aXRsZSAuICJTZXR1cCBmb3Igd29ya3N0YXRpb24iKQogIChhY3Rp
b24gLiB0cml2aWFsKQogIChhY3Rpb25kYXRhICgic3dhcCIgKHNpemUgLiA0MTk0MzA0KSAoZnNp
bSAuICJTV0FQRlMiKSAobWV0aG9kcyBwbGFpbikpCiAgICAgICAgICAgICAgKCIvYm9vdCIgKHNp
emUgLiAyMDk3MTUyKSAoZnNpbSAuICJYRlMiKSAobWV0aG9kcyBwbGFpbikpCiAgICAgICAgICAg
ICAgKCIvIiAoc2l6ZSAuICN0KShmc2ltIC4gIlhGUyIpIChtZXRob2RzIHBsYWluKSkpCikpCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>