• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    XFS Support for fog.upload and fog.bkup

    Scheduled Pinned Locked Moved Solved
    Feature Request
    2
    3
    1.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      ianabc Testers
      last edited by

      Redhat are moving their default file system to xfs (from ext4) in RHEL7. I’m guessing this will mean all of the RHEL derivatives (Centos, Scientific Linux, …) will follow suit. Partclone supports xfs, but at the moment the fog upload scripts are falling back to partclone.imager and taking taking a raw image of the partitions. I’ve tested the following patches and they seem to allow xfs to be handled correctly, please consider them for inclusion.

      [CODE]===================================================================
      — src/buildroot/package/fog/scripts/bin/fog.bkup (revision 1801)
      +++ src/buildroot/package/fog/scripts/bin/fog.bkup (working copy)
      @@ -943,6 +943,8 @@
      fstype=blkid -po udev $win7sys | grep FS_TYPE | awk -F'=' '{print $2}';
      if [ “$fstype” == “ext4” ] || [ “$fstype” == “ext3” ] || [ “$fstype” == “ext2” ]; then
      fstype=“extfs -c”

      •                            elif [ "$fstype" == "xfs" ]; then
        
      •                                fstype="xfs -c"
                                  elif [ "$fstype" == "ntfs" ]; then
                                      fstype="ntfs -c"
                                  elif [ "$fstype" == "vfat" ]; then
        

      [/CODE]

      and

      [CODE]Index: src/buildroot/package/fog/scripts/bin/fog.upload

      — src/buildroot/package/fog/scripts/bin/fog.upload (revision 1801)
      +++ src/buildroot/package/fog/scripts/bin/fog.upload (working copy)
      @@ -261,6 +261,10 @@
      fstype=“extfs -c”;
      echo $fstype;
      sleep 10;

      •                elif [ "$fstype" == "xfs" ]; then
        
      •                    fstype="xfs -c";
        
      •                    echo $fstype;
        
      •                    sleep 10;
                      elif [ "$fstype" == "ntfs" ]; then
                          fstype="ntfs -c";
                          echo $fstype;
        

      [/CODE]

      I’ve tested upload and download against RHEL7 (release candidate 1) images and everything seems to work.

      -Ian

      P.S. I’m new here (but not to fog), so if I’m doing something wrong, please let me know.

      [url=“/_imported_xf_attachments/0/954_fog-upload-xfs-support.patch.txt?:”]fog-upload-xfs-support.patch.txt[/url]

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        When I get home I’ll take a look and probably add it thank you

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • I
          ianabc Testers
          last edited by

          Thanks Tom. It looks like RHEL7 released today as well, good timing!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          219

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project