Re: compiling btrfs-progs 4.17.1 gives error "reiserfs/misc.h: No such file or directory"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2018/9/7 下午6:45, Jürgen Herrmann wrote:
> Am 7.9.2018 12:15, schrieb Qu Wenruo:
>> On 2018/9/7 下午5:56, Jürgen Herrmann wrote:
>>> Hello!
>>>
>>> I'm having a problem with btrfs send which stops after several seconds.
>>> The process hangs with 100% cpu time on one cpu. The system is still
>>> responsive to input but no io is happening anymore so the system
>>> basically becomes unuseable.
>>
>> Do you have a lot of snapshots or reflinked files (common for offline
>> dedupe)?
>>
>> If so, send can spend a lot of time trying to iterate all referencers.
> 
> Linux Mint 19 uses timeshift-btrfs which i find very handy. here's
> a list of snapshot directories, each containing two subvolumes for
> @ and @home:
> 
> drwxr-xr-x 1 root root 30 Aug 16 20:00 2018-08-16_20-00-01
> drwxr-xr-x 1 root root 30 Aug 17 14:00 2018-08-17_14-00-02
> drwxr-xr-x 1 root root 30 Aug 23 20:00 2018-08-23_20-00-01
> drwxr-xr-x 1 root root 30 Aug 30 20:00 2018-08-30_20-00-01
> drwxr-xr-x 1 root root 30 Aug 31 17:00 2018-08-31_17-00-01
> drwxr-xr-x 1 root root 30 Sep  1 20:00 2018-09-01_20-00-02
> drwxr-xr-x 1 root root 30 Sep  2 20:00 2018-09-02_20-00-02
> drwxr-xr-x 1 root root 30 Sep  3 22:00 2018-09-03_22-00-01
> drwxr-xr-x 1 root root 30 Sep  4 22:00 2018-09-04_22-00-02
> drwxr-xr-x 1 root root 30 Sep  5 22:00 2018-09-05_22-00-01
> drwxr-xr-x 1 root root 30 Sep  6 20:00 2018-09-06_20-00-01
> drwxr-xr-x 1 root root 30 Sep  6 22:00 2018-09-06_22-00-01

Considering the number of snapshots, it's not that many, so it may be
another bug.
Not sure about mint, but most deb/ubuntu based distributions don't ship
the latest kernel, while latest kernel may have a chance to solve it.

> 
>>
>>>
>>> I'm on linux mint 19, freshly installed on a new laptop about 6 weeks
>>> ago. So i wanted to compile latest btrfs-progs and latest stable kernel
>>> first before reporting that here, BUT: I cannot compile btrfs-progs
>>> 4.17.1
>>> because of the following error:
>>
>> Your configure detects reiserfs support but it seems that your reiserfs
>> progs is not up-to-date.
>>
>> You could disable reiserfs convert support by:
>>
>> $ ./configure --with-convert=ext2
> 
> This gives me the following error:
> 
>     [LD]     btrfs-convert
> convert/main.o: In function `convert_open_fs':
> /home/jh/Documents/src/_external/btrfs-progs/convert/main.c:1066:
> undefined reference to `reiserfs_convert_ops'
> /home/jh/Documents/src/_external/btrfs-progs/convert/main.c:1066:
> undefined reference to `reiserfs_convert_ops'
> collect2: error: ld returned 1 exit status
> Makefile:506: recipe for target 'btrfs-convert' failed
> make: *** [btrfs-convert] Error 1

This is strange, did you clean (make clean) your previous build before
re-configure?

If it still fails, you could disable convert completely by:

$ ./configure --disable-convert

Thanks,
Qu

> 
> Best regards, Jürgen
> 
>>
>> Thanks,
>> Qu
>>
>>>
>>>     [CC]     convert/source-reiserfs.o
>>> In file included from convert/source-reiserfs.c:30:0:
>>> ./convert/source-reiserfs.h:23:10: fatal error: reiserfs/misc.h: No such
>>> file or directory
>>>  #include <reiserfs/misc.h>
>>>           ^~~~~~~~~~~~~~~~~
>>> compilation terminated.
>>> Makefile:309: recipe for target 'convert/source-reiserfs.o' failed
>>> make: *** [convert/source-reiserfs.o] Error 1
>>>
>>> A google search did not turn up any help nor does apt know of any
>>> reiserfs related libs that i could install.
>>>
>>> Best regards,
>>> Jürgen
>>>
> 

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux