Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84514 - sys-fs/progsreiserfs confuse parted and its based progs
Summary: sys-fs/progsreiserfs confuse parted and its based progs
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
: 149549 170751 273701 (view as bug list)
Depends on:
Blocks: 143485
  Show dependency tree
 
Reported: 2005-03-08 06:36 UTC by Alexey Maximov
Modified: 2011-09-19 01:19 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Maximov 2005-03-08 06:36:54 UTC
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 Alexey Maximov 2005-03-08 13:10:39 UTC
only one way to emerge now is:
emerge sys-fs/progsreiserfs && USE=static emerge testdisk && emerge -C sys-fs/progsreiserfs

:))
Comment 2 Daniel Black (RETIRED) gentoo-dev 2005-04-29 19:07:57 UTC
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 SpanKY gentoo-dev 2005-04-29 21:38:22 UTC
parted is owned by livecd but i dont see why we cant change it to 'reiserfs'
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2005-05-02 05:42:53 UTC
You've got my permission to change it
Comment 5 Keith Constable 2005-05-14 09:26:01 UTC
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 Chris Gianelloni (RETIRED) gentoo-dev 2005-06-10 07:59:11 UTC
Hrrrmn... he meant that testdisk has a reiserfs USE flag...
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2005-06-10 07:59:45 UTC
Can testdisk use reiserfsprogs instead of progsreiserfs?
Comment 8 Daniel Black (RETIRED) gentoo-dev 2005-11-07 04:23:08 UTC
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 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-16 12:45:49 UTC
Looks good to me...
Comment 10 Daniel Black (RETIRED) gentoo-dev 2005-11-20 02:55:20 UTC
Thanks Chris 
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-24 22:54:14 UTC
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 Kevin F. Quinn (RETIRED) gentoo-dev 2006-08-10 14:25:52 UTC
(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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-08-10 18:07:43 UTC
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 Jakub Moc (RETIRED) gentoo-dev 2006-09-30 09:36:38 UTC
*** Bug 149549 has been marked as a duplicate of this bug. ***
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2007-03-13 19:14:54 UTC
*** Bug 170751 has been marked as a duplicate of this bug. ***
Comment 16 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-13 18:23:22 UTC
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 Juergen Rose 2008-03-08 11:46:00 UTC
Hello,

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

     juergen
Comment 18 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-07-14 04:09:40 UTC
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 Chris Gianelloni (RETIRED) gentoo-dev 2008-07-28 18:56:16 UTC
Since the LiveCD herd is only myself and I'm retiring, feel free to go ahead and patch this yourself.
Comment 20 Maxi Combina 2009-01-19 19:50:18 UTC
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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-01-19 20:10:18 UTC
maxi: use /sbin/resize_reiserfs, carefully.

reassigned to myself to do soon.
Comment 22 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-06-17 18:07:27 UTC
*** Bug 273701 has been marked as a duplicate of this bug. ***
Comment 23 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-09-19 01:19:42 UTC
parted3 correctly no longer users reiserfs for anything except detection, closing.