Why are there multiple loop devices for the same snap?

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








up vote
3
down vote

favorite
1












I used lsblk to check connected devices, when I found that there are a total of 3 loop devices for the same snap "core", with revision numbers.



loop1 7:1 0 81.6M 1 loop /snap/core/4110
loop2 7:2 0 81.7M 1 loop /snap/core/4017
loop0 7:0 0 81.3M 1 loop /snap/core/3887


On checking the mount directory of snaps, this is what I get:



drwxr-xr-x 24 root root 321 Jan 22 13:17 3887
drwxr-xr-x 24 root root 321 Feb 6 20:48 4017
drwxr-xr-x 24 root root 321 Feb 20 22:37 4110
lrwxrwxrwx 1 root root 4 Feb 23 19:31 current -> 4110


and snap list shows this:



core 16-2.31.1 4110 canonical core


Why is snapd not removing the old versions of snap core? Is it a normal behavior, or is there any way to remove this if this is not supposed to happen? I'm using Ubuntu 16.04.










share|improve this question



























    up vote
    3
    down vote

    favorite
    1












    I used lsblk to check connected devices, when I found that there are a total of 3 loop devices for the same snap "core", with revision numbers.



    loop1 7:1 0 81.6M 1 loop /snap/core/4110
    loop2 7:2 0 81.7M 1 loop /snap/core/4017
    loop0 7:0 0 81.3M 1 loop /snap/core/3887


    On checking the mount directory of snaps, this is what I get:



    drwxr-xr-x 24 root root 321 Jan 22 13:17 3887
    drwxr-xr-x 24 root root 321 Feb 6 20:48 4017
    drwxr-xr-x 24 root root 321 Feb 20 22:37 4110
    lrwxrwxrwx 1 root root 4 Feb 23 19:31 current -> 4110


    and snap list shows this:



    core 16-2.31.1 4110 canonical core


    Why is snapd not removing the old versions of snap core? Is it a normal behavior, or is there any way to remove this if this is not supposed to happen? I'm using Ubuntu 16.04.










    share|improve this question

























      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      I used lsblk to check connected devices, when I found that there are a total of 3 loop devices for the same snap "core", with revision numbers.



      loop1 7:1 0 81.6M 1 loop /snap/core/4110
      loop2 7:2 0 81.7M 1 loop /snap/core/4017
      loop0 7:0 0 81.3M 1 loop /snap/core/3887


      On checking the mount directory of snaps, this is what I get:



      drwxr-xr-x 24 root root 321 Jan 22 13:17 3887
      drwxr-xr-x 24 root root 321 Feb 6 20:48 4017
      drwxr-xr-x 24 root root 321 Feb 20 22:37 4110
      lrwxrwxrwx 1 root root 4 Feb 23 19:31 current -> 4110


      and snap list shows this:



      core 16-2.31.1 4110 canonical core


      Why is snapd not removing the old versions of snap core? Is it a normal behavior, or is there any way to remove this if this is not supposed to happen? I'm using Ubuntu 16.04.










      share|improve this question















      I used lsblk to check connected devices, when I found that there are a total of 3 loop devices for the same snap "core", with revision numbers.



      loop1 7:1 0 81.6M 1 loop /snap/core/4110
      loop2 7:2 0 81.7M 1 loop /snap/core/4017
      loop0 7:0 0 81.3M 1 loop /snap/core/3887


      On checking the mount directory of snaps, this is what I get:



      drwxr-xr-x 24 root root 321 Jan 22 13:17 3887
      drwxr-xr-x 24 root root 321 Feb 6 20:48 4017
      drwxr-xr-x 24 root root 321 Feb 20 22:37 4110
      lrwxrwxrwx 1 root root 4 Feb 23 19:31 current -> 4110


      and snap list shows this:



      core 16-2.31.1 4110 canonical core


      Why is snapd not removing the old versions of snap core? Is it a normal behavior, or is there any way to remove this if this is not supposed to happen? I'm using Ubuntu 16.04.







      16.04 mount snap loop-device






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 4 at 9:11









      muru

      130k19274467




      130k19274467










      asked Mar 4 at 7:56









      Apurv

      184




      184




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          In speaking with Ubuntu developers, the current default is to keep three prior versions of a snap so that you can roll-back to a prior version if needed. This default setting is not configurable.



          You can use the command snap remove --revision=<an old one> snapname to remove an older revision of a snap.



          They are considering whether to have only the current snap mounted as a loop filesystem, but I don't know the status of that.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            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: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2faskubuntu.com%2fquestions%2f1011728%2fwhy-are-there-multiple-loop-devices-for-the-same-snap%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
            1
            down vote



            accepted










            In speaking with Ubuntu developers, the current default is to keep three prior versions of a snap so that you can roll-back to a prior version if needed. This default setting is not configurable.



            You can use the command snap remove --revision=<an old one> snapname to remove an older revision of a snap.



            They are considering whether to have only the current snap mounted as a loop filesystem, but I don't know the status of that.






            share|improve this answer
























              up vote
              1
              down vote



              accepted










              In speaking with Ubuntu developers, the current default is to keep three prior versions of a snap so that you can roll-back to a prior version if needed. This default setting is not configurable.



              You can use the command snap remove --revision=<an old one> snapname to remove an older revision of a snap.



              They are considering whether to have only the current snap mounted as a loop filesystem, but I don't know the status of that.






              share|improve this answer






















                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted






                In speaking with Ubuntu developers, the current default is to keep three prior versions of a snap so that you can roll-back to a prior version if needed. This default setting is not configurable.



                You can use the command snap remove --revision=<an old one> snapname to remove an older revision of a snap.



                They are considering whether to have only the current snap mounted as a loop filesystem, but I don't know the status of that.






                share|improve this answer












                In speaking with Ubuntu developers, the current default is to keep three prior versions of a snap so that you can roll-back to a prior version if needed. This default setting is not configurable.



                You can use the command snap remove --revision=<an old one> snapname to remove an older revision of a snap.



                They are considering whether to have only the current snap mounted as a loop filesystem, but I don't know the status of that.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 9 at 21:05









                j1mc

                325511




                325511



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1011728%2fwhy-are-there-multiple-loop-devices-for-the-same-snap%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    pylint3 and pip3 broken

                    Missing snmpget and snmpwalk

                    How to enroll fingerprints to Ubuntu 17.10 with VFS491