Bug 84514 - sys-fs/progsreiserfs confuse parted and its based progs
Bug#: 84514 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: NEW Severity: normal Priority: P2
Resolution:  Assigned To: robbat2@gentoo.org Reported By: amax@mail.ru
Component: Applications
URL: 
Summary: sys-fs/progsreiserfs confuse parted and its based progs
Keywords:  
Status Whiteboard: 
Opened: 2005-03-08 06:36 0000
Description:   Opened: 2005-03-08 06:36 0000
after emerge app-admin/testdisk it have installed sys-fs/progsreiserfs 

but after run parted I got

amazing ~ # parted
Warning: GNU Parted has detected libreiserfs interface version mismatch. Found 1-1, required 0. ReiserFS support will be disabled.
GNU Parted 1.6.20 with HFS shrink patch 16


...

After unmerging emerge -C sys-fs/progsreiserfs
I run parted and all ok

amazing / # parted
GNU Parted 1.6.20 with HFS shrink patch 16
Copyright (C) 1998 - 2004 Free Software Foundation, Inc.

.........


I want to use testdisk... what should I do ?



my emerge info
-------------------------
amazing / # emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20050125-r0, 2.6.11-gentoo-r2 i686)
=================================================================
System uname: 2.6.11-gentoo-r2 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 24 2005, 12:03:52)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.9.5, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r4
sys-devel/libtool:   1.5.10-r5
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/media/MEDIA1/gentoo/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg distlocks prelink sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ru_RU.CP1251"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags"
MAKEOPTS="-j1"
PKGDIR="/media/MEDIA1/gentoo/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/media/MEDIA1/gentoo/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acl acpi acpi4linux activefilter alsa apm arts artswrappersuid audiofile avi bash-completion bitmap-fonts bluetooth caps cddb cdparanoia cdr crypt cups curl dga dv dvd dvdr dvdread emboss encodeexif fam ffmpeg flac foomaticdb gd gif gnutls gphoto2 gpm gstreamer gtk2 guile hal howl iconv ieee1394 imagemagick imap imlib innodb jack jack-tmpfs jpeg jpeg2k kde kdeenablefinal ladcca ladspa ldap libcaca libg++ libwww lirc lm_sensors lmtp logitech-mouse lufsusermount lzo mad maildir mailwrapper matroska mbox mikmod mjpeg mmxmozilla mp3 mpeg mppe-mppc nas ncurses nntp no-old-linux nptl nptlonly ntlm oav odbc ogg oggvorbis openal opengl pam pcre pda pdflib pic png portaudio pwdb qt quicktime quotas readline real rtc samba sasl silc skey slang slp smartcard socks5 speex spell ssl symlink tcpd tetex theora threads tiff transcode truetype truetype-fonts usb utf8 v4l v4l2 vcdimager vidix wifi wmf xine xml xml2 xv xvid yv12 zlib linguas_ru"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From Alexey Maximov 2005-03-08 13:10:39 0000 -------
only one way to emerge now is:
emerge sys-fs/progsreiserfs && USE=static emerge testdisk && emerge -C sys-fs/progsreiserfs

:))

------- Comment #2 From Daniel Black 2005-04-29 19:07:57 0000 -------
parted has a noreiserfs flag
testdisk-5.7 has a reiserfs flag

sure it's not consistant however I just hate "no*" flags (and parted isn't mine to change).

basesystem peoples: if you want to change parted to a reiserfs flag to be consistant its your choice. I'll even make the change if you allow it.

Other options were careful use of emerge -O.

------- Comment #3 From SpanKY 2005-04-29 21:38:22 0000 -------
parted is owned by livecd but i dont see why we cant change it to 'reiserfs'

------- Comment #4 From Chris Gianelloni (RETIRED) 2005-05-02 05:42:53 0000 -------
You've got my permission to change it

------- Comment #5 From Keith Constable 2005-05-14 09:26:01 0000 -------
I don't think this bug is fixed:

# parted
Warning: GNU Parted has detected libreiserfs interface version mismatch. Found 1-1, required 0. ReiserFS support will be disabled.
GNU Parted 1.6.22



And where's that reiserfs use flag?

# emerge -vp parted

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-apps/parted-1.6.22  -debug -nls +readline -static 0 kB 

Total size of downloads: 0 kB

------- Comment #6 From Chris Gianelloni (RETIRED) 2005-06-10 07:59:11 0000 -------
Hrrrmn... he meant that testdisk has a reiserfs USE flag...

------- Comment #7 From Chris Gianelloni (RETIRED) 2005-06-10 07:59:45 0000 -------
Can testdisk use reiserfsprogs instead of progsreiserfs?

------- Comment #8 From Daniel Black 2005-11-07 04:23:08 0000 -------
05 Jun 2004; Mike Frysinger <vapier@gentoo.org> parted-1.6.10-r1.ebuild,    
  Remove dependency on progsreiserfs since it is so broken #51773    
    
I've made testdisk depend on reiserfsprogs instead of progsreiserfs as Chris   
suggested. Version 5.9 of testdisk is now stable.   
   
Parted therefore should have not problems. Hopefully progsreiserfs isn't 
required by anything else. 
 
Please confirm 
   

------- Comment #9 From Chris Gianelloni (RETIRED) 2005-11-16 12:45:49 0000 -------
Looks good to me...

------- Comment #10 From Daniel Black 2005-11-20 02:55:20 0000 -------
Thanks Chris 

------- Comment #11 From Robin Johnson 2006-05-24 22:54:14 0000 -------
Sorry to reopen this, but somebody broke reiserfs support in testdisk.

I've said this before, but it does NOT work with reiserfsprogs - as
reiserfsprogs does NOT provide a library for reiserfs functionality.

It absolutely requires >=progsreiserfs-0.3.1_rc8 (which incidently was the last
version released).

In relation to bug 51773, we disabled the binaries that come with progsreiserfs
because they created bad reiserfs partitions - however the actual library
worked 100% to access existing reiserfs partitions in userspace.

Please change parted to not use libreiserfs, and only use the reiserfs binaries
instead.

I've added base-system to the CC, as we (mainly me, but also spanky) maintain
progsreiserfs.

------- Comment #12 From Kevin F. Quinn (RETIRED) 2006-08-10 14:25:52 0000 -------
(In reply to comment #11)
> Please change parted to not use libreiserfs, and only use the reiserfs
> binaries instead.

If this is possible, it would be great, and would solve the reiserfs support
issue with all packages that use sys-apps/parted.  However I suspect it's not
such a trivial change to parted.

------- Comment #13 From Robin Johnson 2006-08-10 18:07:43 0000 -------
I'm aware it's not a trivial change, you'll have to talk to upstream parted
about it, but progsreiserfs should not be used for create/resize/cpfs as those
operations in it are dangerous. only read access to existing data (which is
what testdisk does) is safe with progsreiserfs.

------- Comment #14 From Jakub Moc (RETIRED) 2006-09-30 09:36:38 0000 -------
*** Bug 149549 has been marked as a duplicate of this bug. ***

------- Comment #15 From Jakub Moc (RETIRED) 2007-03-13 19:14:54 0000 -------
*** Bug 170751 has been marked as a duplicate of this bug. ***

------- Comment #16 From Chris Gianelloni (RETIRED) 2007-04-13 18:23:22 0000 -------
It definitely does not look trivial.  I'm looking into it, but it might be a
bit more than we want to handle ourselves.  Also, my C sucks, so any help on
this would definitely be appreciated.

------- Comment #17 From Juergen Rose 2008-03-08 11:46:00 0000 -------
Hello,

any progress with parted and "libreiserfs interface version mismatch.  Found
1-1, required 0"?

     juergen

------- Comment #18 From Robin Johnson 2008-07-14 04:09:40 0000 -------
livecd: please just drop reiserfs support from parted. anybody wanting to make
a reiserfs partition should just mkfs it the normal way instead of having
parted do the creation.

At the top of:
parted-1.8.8/libparted/fs/reiserfs/reiserfs.c
After the config.h, add:
#undef DYNAMIC_LOADING
#undef REISERFS_FULL_SUPPORT

------- Comment #19 From Chris Gianelloni (RETIRED) 2008-07-28 18:56:16 0000 -------
Since the LiveCD herd is only myself and I'm retiring, feel free to go ahead
and patch this yourself.

------- Comment #20 From Maxi Combina 2009-01-19 19:50:18 0000 -------
Even now the bug seems to be present. I want to use gparted to resize my
partitions, not to create. But I can not. I get:
Warning: GNU Parted has detected libreiserfs interface version mismatch.  Found
1-1, required 0. ReiserFS support will be disabled.
======================
libparted : 1.8.8
======================


Of course, same with qtparted. And same with plain parted.
I have checked the flags of parted, gpartd, qtparted but can not see any
strange thing.

Which is the correct way to resize reiserfs partitions? I can't even do it from
parted...

------- Comment #21 From Robin Johnson 2009-01-19 20:10:18 0000 -------
maxi: use /sbin/resize_reiserfs, carefully.

reassigned to myself to do soon.

------- Comment #22 From Lars Wendler (Polynomial-C) 2009-06-17 18:07:27 0000 -------
*** Bug 273701 has been marked as a duplicate of this bug. ***