linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Btrfs send with parent different size depending on source of files.
@ 2019-02-14 11:37 André Malm
  2019-02-14 22:37 ` Chris Murphy
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: André Malm @ 2019-02-14 11:37 UTC (permalink / raw)
  To: linux-btrfs

Hello,

I'm not sure this is the right forum to ask on but I'll try and if its 
not I do apologize. I have also created a stack overflow question 
without success ( 
https://stackoverflow.com/questions/54634703/btrfs-send-with-parent-different-size-depending-on-source-of-files 
) but ill paste the question here too. Thank you.

What i'm trying to achieve is sending only the diff of the parent with 
btrfs send -p

Running this will produce a file 'out' with size 639 bytes, i.e only 
diff sent.

====================================================

btrfs subvolume create A
btrfs subvolume create B
mkdir A/dir

dd if=/dev/urandom of=A/dir/server.jar bs=1024 count=40K
cp --reflink=always A/dir/server.jar B/server.jar

btrfs subvolume snapshot -r A a
btrfs subvolume snapshot -r B b
btrfs send -p a b > out

====================================================

However if I change the dd command to wget like this:

====================================================

btrfs subvolume create A
btrfs subvolume create B
mkdir A/dir

wget -O A/dir/server.jar 
https://launcher.mojang.com/v1/objects/20c069d373e77265aaeeedb733f7051e294325a3/server.jar
cp --reflink=always A/dir/server.jar B/server.jar

btrfs subvolume snapshot -r A a
btrfs subvolume snapshot -r B b
btrfs send -p a b > out

====================================================


The 'out' file is 34M, which is the full size.

What causes this?



^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2019-02-19 12:05 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14 11:37 Btrfs send with parent different size depending on source of files André Malm
2019-02-14 22:37 ` Chris Murphy
2019-02-15  4:00   ` Remi Gauvin
2019-02-15 18:38     ` Chris Murphy
2019-02-15 18:56       ` Remi Gauvin
2019-02-16 20:10         ` Andrei Borzenkov
2019-02-15 17:45   ` Andrei Borzenkov
2019-02-15 19:11     ` Chris Murphy
2019-02-16 20:26       ` Andrei Borzenkov
2019-02-16 20:32         ` Andrei Borzenkov
2019-02-18 18:00         ` Chris Murphy
2019-02-15 19:29 ` Remi Gauvin
2019-02-15 19:41   ` Remi Gauvin
2019-02-16 20:08 ` Andrei Borzenkov
2019-02-17  3:11   ` Remi Gauvin
2019-02-18 13:05     ` André Malm
2019-02-18 18:06       ` Chris Murphy
2019-02-18 19:58         ` André Malm
2019-02-18 20:59           ` Graham Cobb
2019-02-18 21:22           ` Chris Murphy
2019-02-18 21:36             ` André Malm
2019-02-18 22:28               ` Chris Murphy
2019-02-18 22:58                 ` André Malm
2019-02-18 23:49                   ` Chris Murphy
2019-02-18 23:58                     ` André Malm
2019-02-19  0:16                       ` Chris Murphy
2019-02-19  0:17                         ` Chris Murphy
2019-02-19  0:28                         ` André Malm
2019-02-19  3:54                           ` Chris Murphy
2019-02-19 12:05                             ` André Malm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).