Re: [Vserver] Script testfs.sh on Reiser3

2005-12-19 Thread Michael S. Zick
On Sun December 18 2005 21:39, Herbert Poetzl wrote:
 
- - - - -
 
  PS: anyone tried this on reiser4?
 
 PS: did it get into to the kernel yet?
 
It is in Linux-2.6.14-mm2 but it is
still only a namesys.com patch for plain Linux-2.6.14
Which applies cleanly to Linux-2.6.14+Vserver-2.0.1

Will give the thing a try - 
First hint: No extended attribute or ACL questions
shown on menuconfig -
Either they aren't there yet or they are standard (like xfs).
The namesys.com pages give them an honorable mention.
- - - -

# uname -a
Linux wolf466 2.6.14-vs2-r4 #1 PREEMPT Sun Dec 18 08:11:06 CST 2005 i686 
GNU/Linux

Mike
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Script testfs.sh on Reiser3

2005-12-19 Thread Michael S. Zick
On Mon December 19 2005 09:00, micah wrote:
 
 Michael S. Zick wrote:
  wolf466:/mnt# showattr dir_one
  ---bui- dir_one
  
  wolf466:/mnt# setattr --barrier dir_one
  wolf466:/mnt# showattr dir_one
  ---Bui- dir_one
 
 What version of util-vserver are you using? When you do the setattr
 --barrier it should result in:
 
 ---BUi- dir_one

That is a directory, not a file.

Since a directory can not be hard linked,
should not that be ---Bui- dir_one like it
is on Reiser3?

 
 This was fixed in version 0.30.208 of util-vserver.

The above is the  over clipped follow-up for Reiser4.

- - - -

Linux: 2.6.14
Reiser4: 1.0.5
Vserver: 2.0.1
util-vserver: 0.30.209

Mike
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Script testfs.sh on Reiser3

2005-12-18 Thread Herbert Poetzl
On Sat, Dec 17, 2005 at 12:39:44PM -0600, Michael S. Zick wrote:
 Group,
 
 I find differences between lsattr and showattr outputs
 which the script marks as errors.
 
 Background:
 Linux 2.6.14 on x86 with vserver 2.0.1 applied.
 util-vserver 0.30.209
 ReiserFS 3.6.14
 Distribution layout is basicly Debian Sarge
 
 Note 1: script expects a mkfs.reiserfs so I faked it with:
 ln -s /usr/sbin/mkreiserfs /sbin/mkfs.reiserfs

the mkfs.fs linkx/tools are somewhat standartized
so there _should_ be an mkfs.fs for every supported
filesystem (doesn't mean debian has it :)

 Note 2: script calls lsattr (part of e2fsprogs) which
 means that versions prior to 1.37 will silently fail.

ahem, why?

rpm -qf /usr/bin/lsattr
e2fsprogs-1.32-2mdk

and that one works pretty fine too :)

 I built e2fsprogs 1.38 to get past that one.
 
 Here is what I am seeing, all that I can tell is that
 the attributes reported are different:
 
 Without the (-o attrs) option to mount command

(for reiserfs, which absolutely _requires_ attrs to
 work with attributes :)

 [mount /dev/loop0 /mnt]
 
 # showattr /mnt
 ---bui- /mnt
 ui- /mnt/file_9079
 ---bui- /mnt/dir_9079

yep, means the attributes were ignored, that's what
reiserfs _wiithout_ attrs does ...

 # ./lsattr /mnt/
 ./lsattr: Inappropriate ioctl for device While reading flags on /mnt/file_9079
 ./lsattr: Inappropriate ioctl for device While reading flags on /mnt/dir_9079
 (Which seems reasonable)

yeah, no attributes no ioctl :)

 Note 3: Some of the on-line documentation mentions an xattrs option to
 reiserfs - my 3.6.14 only understands attrs (correct in the script).
 
 Next, umount and mount the test file with the attrs option
 [mount -o attrs /dev/loop0 /mnt]
 
 Now we have (without any changes to the files)
 
 # showattr /mnt
 ---bui- /mnt
 UI- /mnt/file_9079
 ---Bui- /mnt/dir_9079

yes, attributes are now available ...
(iunlink and barrier is set)

 (Notice the changes of case with the addition of attrs
 that is going to bite somebody running Reiserfs. )
 
 # ./lsattr /mnt/
 i /mnt/file_9079
 - /mnt/dir_9079

again ioctl and attributes are there ...

 Which translates as:
 # ./lsattr -l /mnt/
 /mnt/file_9079   Immutable
 /mnt/dir_9079---
 
 The only conclusion I can reach is either
 something is broke or incomplete in lsattr

humm, why?

 or Perhaps the script should not be expecting 
 that the output of lsattr on a reiser3 filesystem 
 to make any sense.

again, why? for me it looks pretty fine?
please elaborate what am I missing ...

TIA,
Herbert

 PS: anyone tried this on reiser4?

PS: did it get into to the kernel yet?

 Mike
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Script testfs.sh on Reiser3

2005-12-17 Thread Michael S. Zick
Group,

I find differences between lsattr and showattr outputs
which the script marks as errors.

Background:
Linux 2.6.14 on x86 with vserver 2.0.1 applied.
util-vserver 0.30.209
ReiserFS 3.6.14
Distribution layout is basicly Debian Sarge

Note 1: script expects a mkfs.reiserfs so I faked it with:
ln -s /usr/sbin/mkreiserfs /sbin/mkfs.reiserfs

Note 2: script calls lsattr (part of e2fsprogs) which
means that versions prior to 1.37 will silently fail.
I built e2fsprogs 1.38 to get past that one.

Here is what I am seeing, all that I can tell is that
the attributes reported are different:

Without the (-o attrs) option to mount command
[mount /dev/loop0 /mnt]

# showattr /mnt
---bui- /mnt
ui- /mnt/file_9079
---bui- /mnt/dir_9079

# ./lsattr /mnt/
./lsattr: Inappropriate ioctl for device While reading flags on /mnt/file_9079
./lsattr: Inappropriate ioctl for device While reading flags on /mnt/dir_9079
(Which seems reasonable)

Note 3: Some of the on-line documentation mentions an xattrs option to
reiserfs - my 3.6.14 only understands attrs (correct in the script).

Next, umount and mount the test file with the attrs option
[mount -o attrs /dev/loop0 /mnt]

Now we have (without any changes to the files)

# showattr /mnt
---bui- /mnt
UI- /mnt/file_9079
---Bui- /mnt/dir_9079

(Notice the changes of case with the addition of attrs
that is going to bite somebody running Reiserfs. )

# ./lsattr /mnt/
i /mnt/file_9079
- /mnt/dir_9079

Which translates as:
# ./lsattr -l /mnt/
/mnt/file_9079   Immutable
/mnt/dir_9079---

The only conclusion I can reach is either
something is broke or incomplete in lsattr
or
Perhaps the script should not be expecting 
that the output of lsattr on a reiser3 filesystem 
to make any sense.

PS: anyone tried this on reiser4?

Mike
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Script testfs.sh on Reiser3

2005-12-17 Thread Joel Soete

Hello Mike,

It's a long time I've got news from you, I was worry you could be lost in such 
'grib matrix' ;-)

Michael S. Zick wrote:

Group,

I find differences between lsattr and showattr outputs
which the script marks as errors.

Background:
Linux 2.6.14 on x86 with vserver 2.0.1 applied.
util-vserver 0.30.209
ReiserFS 3.6.14
Distribution layout is basicly Debian Sarge

Note 1: script expects a mkfs.reiserfs so I faked it with:
ln -s /usr/sbin/mkreiserfs /sbin/mkfs.reiserfs

Note 2: script calls lsattr (part of e2fsprogs) which
means that versions prior to 1.37 will silently fail.
I built e2fsprogs 1.38 to get past that one.

Here is what I am seeing, all that I can tell is that
the attributes reported are different:

Without the (-o attrs) option to mount command
[mount /dev/loop0 /mnt]

# showattr /mnt
---bui- /mnt
ui- /mnt/file_9079
---bui- /mnt/dir_9079

# ./lsattr /mnt/
./lsattr: Inappropriate ioctl for device While reading flags on /mnt/file_9079
./lsattr: Inappropriate ioctl for device While reading flags on /mnt/dir_9079
(Which seems reasonable)

Note 3: Some of the on-line documentation mentions an xattrs option to
reiserfs - my 3.6.14 only understands attrs (correct in the script).

Next, umount and mount the test file with the attrs option
[mount -o attrs /dev/loop0 /mnt]

Now we have (without any changes to the files)

# showattr /mnt
---bui- /mnt
UI- /mnt/file_9079
---Bui- /mnt/dir_9079

(Notice the changes of case with the addition of attrs
that is going to bite somebody running Reiserfs. )

# ./lsattr /mnt/
i /mnt/file_9079
- /mnt/dir_9079

Which translates as:
# ./lsattr -l /mnt/
/mnt/file_9079   Immutable
/mnt/dir_9079---

The only conclusion I can reach is either
something is broke or incomplete in lsattr
or
Perhaps the script should not be expecting 
that the output of lsattr on a reiser3 filesystem 
to make any sense.


PS: anyone tried this on reiser4?


mmm, no (not yet ;-) ) but you had right I forgot to mention that the used 
reiser prgm, in my other report was:
# dpkg -l reiser\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ NameVersion Description
+++-===-===-==
ii  reiserfsprogs   3.6.19-1User-level tools 
for ReiserFS filesystems

but release4 doesn't seems to be already available as debian pkg (even in 
experimental ;-( )

Thanks,
Joel



___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Script testfs.sh on Reiser3

2005-12-17 Thread Michael S. Zick
On Sat December 17 2005 13:49, Joel Soete wrote:
 Hello Mike,
 
 It's a long time I've got news from you, I was worry you could be lost in 
 such 'grib matrix' ;-)
 
I must be using the wrong e-mail address for you Joel,
send me an update off list.

 mmm, no (not yet ;-) ) but you had right I forgot to mention that the used 
 reiser prgm, in my other report was:
 # dpkg -l reiser\*
 Desired=Unknown/Install/Remove/Purge/Hold
 | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
 |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
 uppercase=bad)
 ||/ NameVersion Description
 +++-===-===-==
 ii  reiserfsprogs   3.6.19-1User-level tools 
 for ReiserFS filesystems

I am trying version 3.6.19 now -

Might be that mkreiserfs-3.6.14 was putting garbage in
the extended attribute bits.  Not sure yet.

- - - -
# ./testfs.sh -t -F reiser -D /dev/loop0 -M /mnt
Linux-VServer FS Test [V0.10] Copyright (C) 2005 H.Poetzl
Linux 2.6.14vs2 i686/0.30.209
VCI:  0002:0001 273 0366 (ugid24)

---
testing reiser filesystem ...
[000]. xattr related tests ...
[101]. [102]. [103]. [104]. [106]. [108]. [109].
[112]. [113]. [114]. [115]. [116]. [117]. [118]. [119].
[121]. [122]. [123]. [124]. [199].
---
But the -v (verbose) is not as pretty as the -t (terse).

I do have a base install of Debian testing/main running
in a vserver - it seems to be happy (after adding an
/etc/hosts file to make apt-setup work).

Mike
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Script testfs.sh on Reiser3

2005-12-17 Thread Michael S. Zick
On Sat December 17 2005 14:08, Michael S. Zick wrote:
 I am trying version 3.6.19 now -
 
 Might be that mkreiserfs-3.6.14 was putting garbage in
 the extended attribute bits.  Not sure yet.
 
 # ./testfs.sh -t -F reiser -D /dev/loop0 -M /mnt
 Linux-VServer FS Test [V0.10] Copyright (C) 2005 H.Poetzl
 Linux 2.6.14vs2 i686/0.30.209 
 VCI:  0002:0001 273 0366 (ugid24)

Documentation induced cockpit error -

Thou shall not use the testfs.sh option:  -l  (ell) 
with this setup.

Mike
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Script testfs.sh on Reiser3

2005-12-17 Thread Michael S. Zick
On Sat December 17 2005 14:40, Michael S. Zick wrote:

One more note for other newbees like myself:

Using the Debian Sarge Beecrypt (2.2.0) package with
util-vserver 0.30.209 will result in a make check failure -
the test program called by hashcalc.sh seg faults...

Building version 4.1.2 of Beecrypt from source
fixes that problem.
(I purged the Debian Beecrypt and then
I configured beecrypt with: --prefix=/usr )

Mike
 On Sat December 17 2005 14:08, Michael S. Zick wrote:
  I am trying version 3.6.19 now -
  
  Might be that mkreiserfs-3.6.14 was putting garbage in
  the extended attribute bits.  Not sure yet.
  
  # ./testfs.sh -t -F reiser -D /dev/loop0 -M /mnt
  Linux-VServer FS Test [V0.10] Copyright (C) 2005 H.Poetzl
  Linux 2.6.14vs2 i686/0.30.209 
  VCI:  0002:0001 273 0366 (ugid24)
 
 Documentation induced cockpit error -
 
 Thou shall not use the testfs.sh option:  -l  (ell) 
 with this setup.
 
 Mike
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 
 
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Script testfs.sh on Reiser3

2005-12-17 Thread Michael S. Zick
On Sat December 17 2005 14:40, Michael S. Zick wrote:
 On Sat December 17 2005 14:08, Michael S. Zick wrote:
  I am trying version 3.6.19 now -
  
  Might be that mkreiserfs-3.6.14 was putting garbage in
  the extended attribute bits.  Not sure yet.
  
Duh... (aka: RTFM)
reiserfsck --clean-attributes device

paraphrase

If the filesystem was used by a kernel that did not support
extended attributes ... you must run this before using
a kernel with extended attributes ...

/paraphrase

Mike
  # ./testfs.sh -t -F reiser -D /dev/loop0 -M /mnt
  Linux-VServer FS Test [V0.10] Copyright (C) 2005 H.Poetzl
  Linux 2.6.14vs2 i686/0.30.209 
  VCI:  0002:0001 273 0366 (ugid24)
 
 Documentation induced cockpit error -
 
 Thou shall not use the testfs.sh option:  -l  (ell) 
 with this setup.
 
 Mike
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 
 
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver