How can I make btrfs pretend to be ext4?

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











up vote
2
down vote

favorite












Dropbox have just announced that their Linux client will only support ext4 in the future. I currently use Dropbox on a btrfs partition (without any issues). Apparently xattr support is essential. Both ext4 and btrfs support this, and indeed I’m not aware of any ext4 feature that btrfs does not also support.



I don’t know how Dropbox intends to detect the filesystem, but is there any way I can get btrfs to pretend to be ext4?










share|improve this question





















  • First thing I would try and would be "mount --bind"
    – user1133275
    Aug 16 at 23:22














up vote
2
down vote

favorite












Dropbox have just announced that their Linux client will only support ext4 in the future. I currently use Dropbox on a btrfs partition (without any issues). Apparently xattr support is essential. Both ext4 and btrfs support this, and indeed I’m not aware of any ext4 feature that btrfs does not also support.



I don’t know how Dropbox intends to detect the filesystem, but is there any way I can get btrfs to pretend to be ext4?










share|improve this question





















  • First thing I would try and would be "mount --bind"
    – user1133275
    Aug 16 at 23:22












up vote
2
down vote

favorite









up vote
2
down vote

favorite











Dropbox have just announced that their Linux client will only support ext4 in the future. I currently use Dropbox on a btrfs partition (without any issues). Apparently xattr support is essential. Both ext4 and btrfs support this, and indeed I’m not aware of any ext4 feature that btrfs does not also support.



I don’t know how Dropbox intends to detect the filesystem, but is there any way I can get btrfs to pretend to be ext4?










share|improve this question













Dropbox have just announced that their Linux client will only support ext4 in the future. I currently use Dropbox on a btrfs partition (without any issues). Apparently xattr support is essential. Both ext4 and btrfs support this, and indeed I’m not aware of any ext4 feature that btrfs does not also support.



I don’t know how Dropbox intends to detect the filesystem, but is there any way I can get btrfs to pretend to be ext4?







filesystems ext4 btrfs






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 16 at 19:41









jl6

4951516




4951516











  • First thing I would try and would be "mount --bind"
    – user1133275
    Aug 16 at 23:22
















  • First thing I would try and would be "mount --bind"
    – user1133275
    Aug 16 at 23:22















First thing I would try and would be "mount --bind"
– user1133275
Aug 16 at 23:22




First thing I would try and would be "mount --bind"
– user1133275
Aug 16 at 23:22










2 Answers
2






active

oldest

votes

















up vote
1
down vote













Without modifications to the kernel, probably not. And even then it might not be a good idea, the btrfs tools might refuse to work once they think the file system is not btrfs.



Will Dropbox just not support it as in not answer questions, or will the program actively avoid running on any other file system? If it is the latter, there are many ways to detect a file system, and you wouldn't be able to fool them all.






share|improve this answer




















  • Reference dropboxforum.com/t5/Syncing-and-uploads/… - DropBox is only going to support unencrypted 4th extended filesystem on Linux as of November of this year. (LUKS will work, but encryptfs will not)
    – DopeGhoti
    Aug 16 at 19:58


















up vote
0
down vote













Probably the easiest way to handle this is to create an ext4 loopback image in your Btrfs filesystem, then mount it at some temporary location, move the files you sync with Dropbox into that filesystem, then remount it at the top-level directory where Dropbox syncs.



This will keep Dropbox working, but you don't need to replace your whole filesystem. You will still get some of the benefits of Btrfs, as you could snapshot the loopback image and such.






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%2f463056%2fhow-can-i-make-btrfs-pretend-to-be-ext4%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    Without modifications to the kernel, probably not. And even then it might not be a good idea, the btrfs tools might refuse to work once they think the file system is not btrfs.



    Will Dropbox just not support it as in not answer questions, or will the program actively avoid running on any other file system? If it is the latter, there are many ways to detect a file system, and you wouldn't be able to fool them all.






    share|improve this answer




















    • Reference dropboxforum.com/t5/Syncing-and-uploads/… - DropBox is only going to support unencrypted 4th extended filesystem on Linux as of November of this year. (LUKS will work, but encryptfs will not)
      – DopeGhoti
      Aug 16 at 19:58















    up vote
    1
    down vote













    Without modifications to the kernel, probably not. And even then it might not be a good idea, the btrfs tools might refuse to work once they think the file system is not btrfs.



    Will Dropbox just not support it as in not answer questions, or will the program actively avoid running on any other file system? If it is the latter, there are many ways to detect a file system, and you wouldn't be able to fool them all.






    share|improve this answer




















    • Reference dropboxforum.com/t5/Syncing-and-uploads/… - DropBox is only going to support unencrypted 4th extended filesystem on Linux as of November of this year. (LUKS will work, but encryptfs will not)
      – DopeGhoti
      Aug 16 at 19:58













    up vote
    1
    down vote










    up vote
    1
    down vote









    Without modifications to the kernel, probably not. And even then it might not be a good idea, the btrfs tools might refuse to work once they think the file system is not btrfs.



    Will Dropbox just not support it as in not answer questions, or will the program actively avoid running on any other file system? If it is the latter, there are many ways to detect a file system, and you wouldn't be able to fool them all.






    share|improve this answer












    Without modifications to the kernel, probably not. And even then it might not be a good idea, the btrfs tools might refuse to work once they think the file system is not btrfs.



    Will Dropbox just not support it as in not answer questions, or will the program actively avoid running on any other file system? If it is the latter, there are many ways to detect a file system, and you wouldn't be able to fool them all.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Aug 16 at 19:44









    RalfFriedl

    3,7001523




    3,7001523











    • Reference dropboxforum.com/t5/Syncing-and-uploads/… - DropBox is only going to support unencrypted 4th extended filesystem on Linux as of November of this year. (LUKS will work, but encryptfs will not)
      – DopeGhoti
      Aug 16 at 19:58

















    • Reference dropboxforum.com/t5/Syncing-and-uploads/… - DropBox is only going to support unencrypted 4th extended filesystem on Linux as of November of this year. (LUKS will work, but encryptfs will not)
      – DopeGhoti
      Aug 16 at 19:58
















    Reference dropboxforum.com/t5/Syncing-and-uploads/… - DropBox is only going to support unencrypted 4th extended filesystem on Linux as of November of this year. (LUKS will work, but encryptfs will not)
    – DopeGhoti
    Aug 16 at 19:58





    Reference dropboxforum.com/t5/Syncing-and-uploads/… - DropBox is only going to support unencrypted 4th extended filesystem on Linux as of November of this year. (LUKS will work, but encryptfs will not)
    – DopeGhoti
    Aug 16 at 19:58













    up vote
    0
    down vote













    Probably the easiest way to handle this is to create an ext4 loopback image in your Btrfs filesystem, then mount it at some temporary location, move the files you sync with Dropbox into that filesystem, then remount it at the top-level directory where Dropbox syncs.



    This will keep Dropbox working, but you don't need to replace your whole filesystem. You will still get some of the benefits of Btrfs, as you could snapshot the loopback image and such.






    share|improve this answer
























      up vote
      0
      down vote













      Probably the easiest way to handle this is to create an ext4 loopback image in your Btrfs filesystem, then mount it at some temporary location, move the files you sync with Dropbox into that filesystem, then remount it at the top-level directory where Dropbox syncs.



      This will keep Dropbox working, but you don't need to replace your whole filesystem. You will still get some of the benefits of Btrfs, as you could snapshot the loopback image and such.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        Probably the easiest way to handle this is to create an ext4 loopback image in your Btrfs filesystem, then mount it at some temporary location, move the files you sync with Dropbox into that filesystem, then remount it at the top-level directory where Dropbox syncs.



        This will keep Dropbox working, but you don't need to replace your whole filesystem. You will still get some of the benefits of Btrfs, as you could snapshot the loopback image and such.






        share|improve this answer












        Probably the easiest way to handle this is to create an ext4 loopback image in your Btrfs filesystem, then mount it at some temporary location, move the files you sync with Dropbox into that filesystem, then remount it at the top-level directory where Dropbox syncs.



        This will keep Dropbox working, but you don't need to replace your whole filesystem. You will still get some of the benefits of Btrfs, as you could snapshot the loopback image and such.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 17 at 16:02









        LustreOne

        3299




        3299



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f463056%2fhow-can-i-make-btrfs-pretend-to-be-ext4%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)