compression with btrfs-send / btrfs-receive

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












When I send a compressed subvol (i.e., one part of a filesystem mounted with the compress mount option) with btrfs-send, does btrfs-send send it compressed, or does it decompress it first?



Similarly, when I receive the subvol with btrfs-receive, does btrfs-receive re-compress?







share|improve this question
























    up vote
    1
    down vote

    favorite












    When I send a compressed subvol (i.e., one part of a filesystem mounted with the compress mount option) with btrfs-send, does btrfs-send send it compressed, or does it decompress it first?



    Similarly, when I receive the subvol with btrfs-receive, does btrfs-receive re-compress?







    share|improve this question






















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      When I send a compressed subvol (i.e., one part of a filesystem mounted with the compress mount option) with btrfs-send, does btrfs-send send it compressed, or does it decompress it first?



      Similarly, when I receive the subvol with btrfs-receive, does btrfs-receive re-compress?







      share|improve this question












      When I send a compressed subvol (i.e., one part of a filesystem mounted with the compress mount option) with btrfs-send, does btrfs-send send it compressed, or does it decompress it first?



      Similarly, when I receive the subvol with btrfs-receive, does btrfs-receive re-compress?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 22 at 15:52









      Geremia

      509716




      509716




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          btrfs-send will perform read syscalls, which means it will decompress the data indeed. Then data are streamed uncompressed, and btrfs-receive will perform write syscalls, which will compress depending on the target btrfs system compress mount option.



          So for instance, you could have an existing btrfs system with all kinds of compression used for different files, and write to a new one where all data will be zstd-compressed.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f432860%2fcompression-with-btrfs-send-btrfs-receive%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            btrfs-send will perform read syscalls, which means it will decompress the data indeed. Then data are streamed uncompressed, and btrfs-receive will perform write syscalls, which will compress depending on the target btrfs system compress mount option.



            So for instance, you could have an existing btrfs system with all kinds of compression used for different files, and write to a new one where all data will be zstd-compressed.






            share|improve this answer
























              up vote
              2
              down vote



              accepted










              btrfs-send will perform read syscalls, which means it will decompress the data indeed. Then data are streamed uncompressed, and btrfs-receive will perform write syscalls, which will compress depending on the target btrfs system compress mount option.



              So for instance, you could have an existing btrfs system with all kinds of compression used for different files, and write to a new one where all data will be zstd-compressed.






              share|improve this answer






















                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                btrfs-send will perform read syscalls, which means it will decompress the data indeed. Then data are streamed uncompressed, and btrfs-receive will perform write syscalls, which will compress depending on the target btrfs system compress mount option.



                So for instance, you could have an existing btrfs system with all kinds of compression used for different files, and write to a new one where all data will be zstd-compressed.






                share|improve this answer












                btrfs-send will perform read syscalls, which means it will decompress the data indeed. Then data are streamed uncompressed, and btrfs-receive will perform write syscalls, which will compress depending on the target btrfs system compress mount option.



                So for instance, you could have an existing btrfs system with all kinds of compression used for different files, and write to a new one where all data will be zstd-compressed.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 21 at 19:12









                Archange

                713




                713






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f432860%2fcompression-with-btrfs-send-btrfs-receive%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay