Re: [PATCH 2/4 RESEND] btrfs: fix vanished compression property after failed set

2019-04-02 Thread David Sterba
On Tue, Apr 02, 2019 at 06:07:40PM +0800, Anand Jain wrote: > The compression property resets to NULL, instead of the old value if we > fail to set the new compression parameter. > > btrfs prop get /btrfs compression > compression=lzo > btrfs prop set /btrfs compression zli > ERROR: failed to

Re: [PATCH 2/4 RESEND] btrfs: fix vanished compression property after failed set

2019-04-02 Thread Nikolay Borisov
On 2.04.19 г. 13:07 ч., Anand Jain wrote: > The compression property resets to NULL, instead of the old value if we > fail to set the new compression parameter. > > btrfs prop get /btrfs compression > compression=lzo > btrfs prop set /btrfs compression zli > ERROR: failed to set compression

[PATCH 2/4 RESEND] btrfs: fix vanished compression property after failed set

2019-04-02 Thread Anand Jain
The compression property resets to NULL, instead of the old value if we fail to set the new compression parameter. btrfs prop get /btrfs compression compression=lzo btrfs prop set /btrfs compression zli ERROR: failed to set compression for /btrfs: Invalid argument btrfs prop get /btrfs compres