[PATCH]Make fsck.reiser4 really quiet

2006-12-04 Thread Joe Feise
Hi,

Attached is a patch to make the -q switch to fsck.reiser4 *really* quiet.
It also removes the shouting style of all-caps text for the major fsck actions.
Diff'ed against reiser4progs 1.0.6.

Cheers,
-Joe

Signed-off-by: J. Joe Feise [EMAIL PROTECTED]

diff -urN reiser4progs-1.0.6.orig/include/repair/repair.h 
reiser4progs-1.0.6/include/repair/repair.h
--- reiser4progs-1.0.6.orig/include/repair/repair.h 2006-11-01 
06:50:34.0 -0800
+++ reiser4progs-1.0.6/include/repair/repair.h  2006-11-08 19:18:52.0 
-0800
@@ -29,6 +29,7 @@
char *bitmap_file;

uint32_t flags;
+   uint8_t quiet;
 } repair_data_t;
 
 extern errno_t repair_check(repair_data_t *repair);
diff -urN reiser4progs-1.0.6.orig/librepair/add_missing.c 
reiser4progs-1.0.6/librepair/add_missing.c
--- reiser4progs-1.0.6.orig/librepair/add_missing.c 2006-11-01 
06:50:34.0 -0800
+++ reiser4progs-1.0.6/librepair/add_missing.c  2006-11-08 19:18:52.0 
-0800
@@ -297,7 +297,7 @@
aal_assert(vpf-848, am-bm_twig != NULL);
aal_assert(vpf-849, am-bm_leaf != NULL);

-   aal_mess(INSERTING UNCONNECTED NODES);
+   aal_mess(Inserting unconnected nodes);
am-gauge = aal_gauge_create(aux_gauge_handlers[GT_PROGRESS], 
 NULL, NULL, 500, NULL);
time(am-stat.time);
@@ -358,7 +358,8 @@
}

aal_gauge_free(am-gauge);
-   repair_add_missing_update(am);
+   if (!am-repair-quiet)
+   repair_add_missing_update(am);
reiser4_fs_sync(am-repair-fs);

return 0;
diff -urN reiser4progs-1.0.6.orig/librepair/cleanup.c 
reiser4progs-1.0.6/librepair/cleanup.c
--- reiser4progs-1.0.6.orig/librepair/cleanup.c 2006-11-01 06:50:34.0 
-0800
+++ reiser4progs-1.0.6/librepair/cleanup.c  2006-11-08 19:19:37.0 
-0800
@@ -143,7 +143,7 @@
return 0;
}

-   aal_mess(CLEANING UP THE STORAGE TREE);
+   aal_mess(Cleaning up the storage tree);
cleanup-gauge = aal_gauge_create(aux_gauge_handlers[GT_PROGRESS],
  cb_gauge_tree_percent, NULL, 500, 
NULL);
aal_gauge_set_value(cleanup-gauge, 0);
@@ -158,7 +158,8 @@
 
aal_gauge_done(cleanup-gauge);
aal_gauge_free(cleanup-gauge);
-   repair_cleanup_update(cleanup);
+   if (!cleanup-repair-quiet)
+   repair_cleanup_update(cleanup);
reiser4_fs_sync(cleanup-repair-fs);

return 0;
diff -urN reiser4progs-1.0.6.orig/librepair/disk_scan.c 
reiser4progs-1.0.6/librepair/disk_scan.c
--- reiser4progs-1.0.6.orig/librepair/disk_scan.c   2006-11-01 
06:50:34.0 -0800
+++ reiser4progs-1.0.6/librepair/disk_scan.c2006-11-08 19:18:53.0 
-0800
@@ -79,7 +79,7 @@
aal_assert(vpf-820, ds-bm_scan != NULL);
aal_assert(vpf-820, ds-bm_met != NULL);

-   aal_mess(LOOKING FOR UNCONNECTED NODES);
+   aal_mess(Looking for unconnected nodes);
gauge = aal_gauge_create(aux_gauge_handlers[GT_PROGRESS], 
 NULL, NULL, 500, NULL);
aal_gauge_touch(gauge);
@@ -161,6 +161,7 @@
  error:
aal_gauge_done(gauge);
aal_gauge_free(gauge);
-   repair_disk_scan_update(ds);
+   if (!ds-repair-quiet)
+   repair_disk_scan_update(ds);
return res;
 }
diff -urN reiser4progs-1.0.6.orig/librepair/filter.c 
reiser4progs-1.0.6/librepair/filter.c
--- reiser4progs-1.0.6.orig/librepair/filter.c  2006-11-01 06:50:34.0 
-0800
+++ reiser4progs-1.0.6/librepair/filter.c   2006-11-08 19:20:14.0 
-0800
@@ -659,7 +659,7 @@
aal_assert(vpf-816, fd-repair-fs-tree != NULL);
aal_assert(vpf-815, fd-bm_used != NULL);
 
-   aal_mess(CHECKING THE STORAGE TREE);
+   aal_mess(Checking the storage tree);
fd-gauge = aal_gauge_create(aux_gauge_handlers[GT_PROGRESS], 
 cb_gauge_tree_percent, NULL, 500, NULL);
time(fd-stat.time);
@@ -667,7 +667,8 @@
res = repair_filter_traverse(fd);

aal_gauge_free(fd-gauge);
-   repair_filter_update(fd);
+   if (!fd-repair-quiet)
+   repair_filter_update(fd);

if (!res  fd-repair-mode != RM_CHECK)
reiser4_fs_sync(fd-repair-fs);
diff -urN reiser4progs-1.0.6.orig/librepair/repair.c 
reiser4progs-1.0.6/librepair/repair.c
--- reiser4progs-1.0.6.orig/librepair/repair.c  2006-11-01 06:50:34.0 
-0800
+++ reiser4progs-1.0.6/librepair/repair.c   2006-11-08 19:18:53.0 
-0800
@@ -747,7 +747,7 @@
/* Scan the storage reiser4 tree. Cut broken parts out. */
if ((res = repair_filter_prepare(control, filter)))
goto error;
-   
+
if ((res = repair_filter(filter)))
goto error;

diff -urN reiser4progs-1.0.6.orig/librepair/semantic.c 

[2.4 PATCH] reiserfs parenthesis fix

2006-12-04 Thread Mariusz Kozlowski
Hello,

This patch fixes parenthesis in B_PRIGHT_DELIM_KEY() macro code.

Signed-off-by: Mariusz Kozlowski [EMAIL PROTECTED]

 include/linux/reiserfs_fs.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.4.34-pre6-a/include/linux/reiserfs_fs.h 2004-11-17 
12:54:22.0 +0100
+++ linux-2.4.34-pre6-b/include/linux/reiserfs_fs.h 2006-12-01 
11:53:10.0 +0100
@@ -787,7 +787,7 @@ struct block_head {   
 
 
 /* Get right delimiting key. -- little endian */
-#define B_PRIGHT_DELIM_KEY(p_s_bh)   ((blk_right_delim_key(B_BLK_HEAD(p_s_bh))
+#define B_PRIGHT_DELIM_KEY(p_s_bh)   
((blk_right_delim_key(B_BLK_HEAD(p_s_bh
 
 /* Does the buffer contain a disk leaf. */
 #define B_IS_ITEMS_LEVEL(p_s_bh) (B_LEVEL(p_s_bh) == DISK_LEAF_NODE_LEVEL)


-- 
Regards,

Mariusz Kozlowski


Re: Reiser4 for 2.6.19

2006-12-04 Thread Guilherme Covolo
great job :)

Em Domingo 03 Dezembro 2006 11:49, Laurent Riffard escreveu:
 [this is a repost, since half of my previous mails didn't reach
  reiserfs mailing-list]

 Hi,

 There is 10 patches in this series, first one is Reiser4 for 2.6.18
 version 3. It's made up from the last Namesys Reiser4 patch for vanilla
 kernel
 (http://ftp.namesys.com/pub/reiser4-for-2.6/2.6.18/reiser4-for-2.6.18-3.pat
ch.gz), updated to apply cleanly on top of 2.6.19 kernel. One can
 alternatively apply the original patch from Namesys
 (reiser4-for-2.6.18-3.patch.gz) on top of 2.6.19 kernel, it will
 successfully apply with some oddities.

 The 9 next patches are compile-fixes for 2.6.19 or bug-fixes I picked up
 from reiserfs mailing-list.

 Andrew Wade (3):
 Reiser4: fix use after free in jrelse_tail
 Reiser4: release d_ref
 Reiser4: release d_ref (fix)

 Edward Shishkin (2):
 Reiser4 for 2.6.18 version 3
 reiser4-generic_file_read-fix

 Laurent Riffard (5):
 Reiser4: cometics changes in mm/filemap.c.
 Reiser4: fix calls to kmem_cache_destroy
 Reiser4: Replace inode.u.generic_ip with inode.i_private
 Reiser4: inode.i_blksize suppression
 Reiser4: remove unnecessary config.h includes.

 The whole series is available as in a single patch:
 http://laurent.riffard.free.fr/reiser4/reiser4-for-2.6.19.patch.gz.

 I'm not a filesystem guru, nor I'm affiliated with Namesys. These
 patches just suit my needs. It works for me and I hope it will help
 somebody else.

 ~~
 laurent


Re: Howto help hans?

2006-12-04 Thread Gorazd Golob
I guess it should be possible somehow to raise some funds - guys from
namesys should give us number of his account or paypal would be safer ?
I don't have enough experience with all that e-commerce stuff.. 


On Sun, 2006-12-03 at 11:23 -0800, Anatoli wrote:
 Hi,
 
 I talk to peoples here but wasn't be able ot find any ways to help him 
 eather. :-(
 If you find anything, could you please let me know also?
 
 Thank you,
 Anatoli.
 
 On Saturday 02 December 2006 07:28, Clemens Eisserer wrote:
  Hello again,
 
  I just read in a german online news-site
  http://forum.tecchannel.de/news/themen/linux/456733/ that Hans'
  advocate Daniel Horowitz (I don't know wether this is the right word,
  that one how helps hans in front of the court) stopped working for
  hime because Hans was not able to pay him anymore.
 
  I don't know wether this is right or just imagination of newspapers,
  but if thats right we should help somehow. As far as I know there is
  currently no way of donating to Reiser4's developmant nore to help
  Hans in any way? Any ideas?
  Whats about registering a domain with sum fund stuff - donate to
  Reiser4 / help Hans?
 
  Does nobody care?!
 
  lg Clemens



Re: Howto help hans?

2006-12-04 Thread Danny Milosavljevic
Hi,

On Sat, 02 Dec 2006 16:28:28 +0100, Clemens Eisserer wrote:

 Hello again,
 
 I just read in a german online news-site
 http://forum.tecchannel.de/news/themen/linux/456733/ that Hans' advocate
 Daniel Horowitz (I don't know wether this is the right word, that one
 how helps hans in front of the court) stopped working for hime because
 Hans was not able to pay him anymore.

Hmm? I don't know how it is in the United States of America, but doesn't
the plaintiff get an attourney paid by the court if he can't afford one?

The page at http://forum.tecchannel.de/news/themen/linux/456733/ cites no
source and since a report without a source attribution is not even worth
the bits it is stored on, do we have some actual news report (as in,
verifyable facts) somewhere? Is jdo an attribution? If they are
verifyable, did someone from California check them yet? (I live waaay over
the pond, so...)

 I don't know wether this is right or just imagination of newspapers, but
 if thats right we should help somehow. As far as I know there is
 currently no way of donating to Reiser4's developmant nore to help Hans
 in any way? Any ideas?
 Whats about registering a domain with sum fund stuff - donate to Reiser4
 / help Hans?
 
 Does nobody care?!

I do care and I set up a (small) pledge at pledgebank. Join it, please:
http://www.pledgebank.com/hans-reiser

What does an attourney cost for, say, 100 hours over there?

Also, someone (best: multiple persons) from the Oakland, California area
should attend the hearing at 11 Dec 2006 to see that nothing fishy goes
on.

cheers,
  Danny



Re: Howto help hans?

2006-12-04 Thread Bryan Petty

On 12/4/06, Danny Milosavljevic [EMAIL PROTECTED] wrote:

Hmm? I don't know how it is in the United States of America, but doesn't
the plaintiff get an attourney paid by the court if he can't afford one?


Yes, and William DuBois is that attorney as recent news articles state.


What does an attourney cost for, say, 100 hours over there?


Even if I had some idea, it would be significantly more in the Oakland
area than where I live.


Also, someone (best: multiple persons) from the Oakland, California area
should attend the hearing at 11 Dec 2006 to see that nothing fishy goes
on.


Sorry, I'm not anywhere close enough to make that.

Regards,
Bryan Petty


Re: Howto help hans?

2006-12-04 Thread Valdis . Kletnieks
On Mon, 04 Dec 2006 13:02:15 GMT, Danny Milosavljevic said:
 What does an attourney cost for, say, 100 hours over there?

Guesstimating $200/hour (minimum), you're looking at $20K and up.  Taking
a case to trial is going to take a lot more than 100 billable hours.




pgpgsOvhkEQyt.pgp
Description: PGP signature


Re: Howto help hans?

2006-12-04 Thread Maciej Sołtysiak
 Guesstimating $200/hour (minimum), you're looking at $20K and up.  Taking
 a case to trial is going to take a lot more than 100 billable hours.
Hefty. I guess I'll buy some loterry tickets/coupons. I don't make that much
to spend :-(

Regards,
Maciej




Re: Howto help hans?

2006-12-04 Thread Clemens Eisserer

Hefty. I guess I'll buy some loterry tickets/coupons. I don't make that much
to spend


Me too - I'm a student ;)
However I guess its not important how much someone pays (e.g. I am
willed to pay 20-30$), I guess if enough people donate money - it
really would help.

lg Clemens