No space left on rfs4
Hello people,
I've been following this list for some time but this is my first e-mail here since at least 2 years. (thank you Edwards for your work, you've fixed many of my issues lately)
Today I am mailing you about an issue that you probably know about, but that I still believe needs to be fixed: filling the FS till it corrupts itself.
How many times have I almost killed by computer by filling my rfs4, copying data on the wrong partition or doing something else...
The FS needs to be able to handle that, but instead some files get corrupted and when I try to delete them my computer is kind of dead and needs to reboot. Of course, I cannot reboot and have to shut it down myself which might corrupt even more data... If I tried to delete some files after filling the partition, at the reboot they're back and so I'm again with a couple of Kb free. Usually a fsck fixes this problem, but when I do that on / the fsck may not be usable anymore...
Don't we have like 5% of space blocked for this case like on other FS? or something else that would prevent this problem from happening?
I am using the latest rfs4 patch from here with a 2.6.24 kernel and a ccreg40 partition, but this issue has been here for years so nothing new I believe.
Thank you,
John
Hello.
How long ago did it happen?
I can not reproduce such problems, so let's start with full bugreport. Root partition can be checked after booting with gentoo-based live CD which contains reiser4progs-1.0.6
Thanks,
Edward.
Quoted 28 lines · John
Hello people,
I've been following this list for some time but this is my first e-mail here since at least 2 years. (thank you Edwards for your work, you've fixed many of my issues lately)
Today I am mailing you about an issue that you probably know about, but that I still believe needs to be fixed: filling the FS till it corrupts itself.
How many times have I almost killed by computer by filling my rfs4, copying data on the wrong partition or doing something else...
The FS needs to be able to handle that, but instead some files get corrupted and when I try to delete them my computer is kind of dead and needs to reboot. Of course, I cannot reboot and have to shut it down myself which might corrupt even more data... If I tried to delete some files after filling the partition, at the reboot they're back and so I'm again with a couple of Kb free. Usually a fsck fixes this problem, but when I do that on / the fsck may not be usable anymore...
Don't we have like 5% of space blocked for this case like on other FS? or something else that would prevent this problem from happening?
I am using the latest rfs4 patch from here with a 2.6.24 kernel and a ccreg40 partition, but this issue has been here for years so nothing new I believe.
Thank you,
John
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hello,
Last time, it happened 2 days ago.
What would be a full bugreport? I do not really know what you mean by that. Do you want me to do it again and to send you the error message or something?
As for the live-cd yes I know, but this computer does not have a CD any-more so my only way out is my other /. But yes there is always a way to fix it, it is just bothersome...
Thinking about it those partitions were created with reiser4progs-1.0.5 if I remember correctly. Maybe that would make a difference?
Thank you,
John
Quoted 60 lines · Edward Shishkin
Hello.
How long ago did it happen?
I can not reproduce such problems, so let's start with full bugreport. Root partition can be checked after booting with gentoo-based live CD which contains reiser4progs-1.0.6Thanks,
Edward.Quoted 3 lines · John
Hello people,
I've been following this list for some time but this is my first e-mail
here since at least 2 years.
Quoted 4 lines
(thank you Edwards for your work, you've fixed many of my issues lately)
Today I am mailing you about an issue that you probably know about, but
that I still believe needs to be fixed: filling the FS till it corrupts itself.
Quoted 2 lines
How many times have I almost killed by computer by filling my rfs4,
copying data on the wrong partition or doing something else...
Quoted 2 lines
The FS needs to be able to handle that, but instead some files get
corrupted and when I try to delete them my computer is kind of dead and needs to reboot. Of course, I cannot reboot and have to shut it down myself which might corrupt even more data... If I tried to delete some files after filling the partition, at the reboot they're back and so I'm again with a couple of Kb free. Usually a fsck fixes this problem, but when I do that on / the fsck may not be usable anymore...
Quoted 2 lines
Don't we have like 5% of space blocked for this case like on other FS? or
something else that would prevent this problem from happening?
Quoted 3 lines
I am using the latest rfs4 patch from here with a 2.6.24 kernel and a
ccreg40 partition, but this issue has been here for years so nothing new I believe.
Quoted 7 lines
Thank you,
John
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel"in
Quoted 5 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · John
Hello,
Last time, it happened 2 days ago.
So it was with 2.6.24, right?
Quoted 2 lines
What would be a full bugreport?
What exactly happens when you get no space left on device? Is it a kernel oops, or just a system a freeze?
Are there any related kernel messages?
What kind of workload do you use to exhaust disk space? What exactly happens when you try to delete files on the device with no space left?
Is your device formatted with reg40 (default), or ccreg40 (I am a bit confused: reiser4progs-1.0.5 are not aware of ccreg40).
Thanks,
Edward.
Quoted 105 lines
I do not really know what you mean by that. Do you want me to do it again and to send you the error message or something?
As for the live-cd yes I know, but this computer does not have a CD any-more so my only way out is my other /. But yes there is always a way to fix it, it is just bothersome...
Thinking about it those partitions were created with reiser4progs-1.0.5 if I remember correctly. Maybe that would make a difference?
Thank you,
John
Quoted 87 lines · Edward Shishkin
Hello.
How long ago did it happen?
I can not reproduce such problems, so let's start with full bugreport. Root partition can be checked after booting with gentoo-based live CD which contains reiser4progs-1.0.6Thanks,
Edward.Quoted 5 lines · John
Hello people,
I've been following this list for some time but this is my first e-mail
here since at least 2 years.
Quoted 6 lines
(thank you Edwards for your work, you've fixed many of my issues lately)
Today I am mailing you about an issue that you probably know about, but
that I still believe needs to be fixed: filling the FS till it corrupts itself.
Quoted 3 lines
How many times have I almost killed by computer by filling my rfs4,
copying data on the wrong partition or doing something else...
Quoted 3 lines
The FS needs to be able to handle that, but instead some files get
corrupted and when I try to delete them my computer is kind of dead and needs to reboot. Of course, I cannot reboot and have to shut it down myself which might corrupt even more data... If I tried to delete some files after filling the partition, at the reboot they're back and so I'm again with a couple of Kb free. Usually a fsck fixes this problem, but when I do that on / the fsck may not be usable anymore...
Quoted 3 lines
Don't we have like 5% of space blocked for this case like on other FS? or
something else that would prevent this problem from happening?
Quoted 3 lines
I am using the latest rfs4 patch from here with a 2.6.24 kernel and a
ccreg40 partition, but this issue has been here for years so nothing new I believe.
Quoted 8 lines
Thank you,
John
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel"in
Quoted 7 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Edward Shishkin
Quoted 5 lines · John
Hello,
Last time, it happened 2 days ago.
So it was with 2.6.24, right?
Yep.
Also happened with 2.6.23 a few weeks ago.
Quoted 7 lines
Quoted 3 lines
What would be a full bugreport?
What exactly happens when you get no space left on device? Is it a kernel oops, or just a system a freeze? Are there any related kernel messages?
I'm getting an error message about it, and that is about all. The system can still be used if it is not the / partition.
Quoted 1 line
What kind of workload do you use to exhaust disk space?
Just extracting files from a tar.bz2 to the wrong partition.
Quoted 2 lines
What exactly happens when you try to delete files on the device with no space left?
The issue starts when I try to remove the files that caused that problem.
I'm guessing that the files freezing my shell when I try to delete them are the ones that could not be fully copied: some files can be removed without any issue, and others just freeze my shell (not my system). Once my shell has been frozen rebooting will not be possible. Probably the partition cannot be unmounted or something like that.
Quoted 2 lines
Is your device formatted with reg40 (default), or ccreg40 (I am a bit confused: reiser4progs-1.0.5 are not aware of ccreg40).
Right, last time it happened with a reg40 partition.
Before that I thought it was with a ccreg40 but maybe not. I ain't sure anymore. For now my / is ccreg40 and my /home is reg40. The issue this week came with /home being full.
Would you like me to recreate that partition with 1.0.6?
Actually I have another partition created this week with 1.0.6 in ccreg40, I can easily fill it and see what happens then.
Thank you,
John
Hello.
Yeah, indeed, I have reproduced it for reg40 (default plugin):
tar process is in permanent "+D" state. After reboot all files were successfully deleted, although there is some leak of free disk space there.
Ok, I'll take a look at this more carefully (I guess -ENOSPC error is handled incorrectly somewhere).
If you have a problems with deleting files on reg40 partition, then please pack your metadata by
debugfs.reiser4 -P /dev/xxx | gzip > meta.gz
and let me download the file meta.gz
I don' t see such problems with ccreg40 (compression plugin). Please, let me know, if something goes wrong here..
Thanks!
Edward.
Quoted 73 lines · John
Quoted 4 lines · Edward Shishkin
John wrote:
Quoted 10 lines
Quoted 7 lines
Hello,
Last time, it happened 2 days ago.
So it was with 2.6.24, right?
Yep.
Also happened with 2.6.23 a few weeks ago.Quoted 9 lines
Quoted 4 lines
What would be a full bugreport?
What exactly happens when you get no space left on device? Is it a kernel oops, or just a system a freeze? Are there any related kernel messages?
I'm getting an error message about it, and that is about all. The system can still be used if it is not the / partition.
Quoted 3 lines
What kind of workload do you use to exhaust disk space?
Just extracting files from a tar.bz2 to the wrong partition.
Quoted 4 lines
What exactly happens when you try to delete files on the device with no space left?
The issue starts when I try to remove the files that caused that problem.
I'm guessing that the files freezing my shell when I try to delete them are the ones that could not be fully copied: some files can be removed without any issue, and others just freeze my shell (not my system). Once my shell has been frozen rebooting will not be possible. Probably the partition cannot be unmounted or something like that.Quoted 4 lines
Is your device formatted with reg40 (default), or ccreg40 (I am a bit confused: reiser4progs-1.0.5 are not aware of ccreg40).
Right, last time it happened with a reg40 partition.
Before that I thought it was with a ccreg40 but maybe not. I ain't sure anymore. For now my / is ccreg40 and my /home is reg40. The issue this week came with /home being full.Would you like me to recreate that partition with 1.0.6?
Actually I have another partition created this week with 1.0.6 in ccreg40, I can easily fill it and see what happens then.Thank you,
John
Quoted 7 lines · Edward Shishkin
Hello.
Yeah, indeed, I have reproduced it for reg40 (default plugin):
tar process is in permanent "+D" state. After reboot all files were successfully deleted, although there is some leak of free disk space there.
Quoted 7 lines
Ok, I'll take a look at this more carefully (I guess
-ENOSPCerror is handled incorrectly somewhere).If you have a problems with deleting files on reg40 partition, then please pack your metadata by
debugfs.reiser4 -P/dev/xxx| gzip > meta.gz
and let me download the file meta.gz
My FS is currently no full and with no bug, so I hope these are the metadata you wanted. If not I'll fill it again and send it to you again
http://www.megaupload.com/?d=XVITV1CU
(sorry I cannot send a file that big by e-mail)
Quoted 3 lines
I don' t see such problems with ccreg40 (compression plugin). Please, let me know, if something goes wrong here..
I just tried and had the same issue with a ccreg40 partition.
I could not remove all the files, and when I tried it just froze my shell. After killing my shell I was able to reboot but not to umount the partition. This is the debugfs output:
http://www.megaupload.com/?d=CBEGIFDL
I also wanted to join an fsck output but I don't know how to do that.
Basically the results were in checking the semantic tree
FSCK: obj40_repair.c 223: obj40_stat_unix_check: Node (XYZ), item (a), [fgfdgf:fgfdggdf:fhgfhgf] (stat40): wrong bytes (ABCDE), fixed to (EFC).
(obviously this is some sort of templated message, they were all like that...)
Thank you,
John
My own experience with RR4 when the filesystem is full, is that it works perfectly if only a very few files are being written to, as in /var/tmp/ overflowing when it's being used to build a package in Gentoo, but that if there are many files open, as in an rsync session, or a single file being written to in many places, as in the bittorrent situation, then major breakage occurs. Perhaps I should say occurred because the overfill of the RR4 partition during a Gentoo package build happened 3 days ago, whereas the others many months.
Signature · 2 lines
Sincerely etc. Christopher Sawtell
Re: Reiser4 resize
Quoted 6 lines · Edward Shishkin
Quoted 3 lines · Oleg Osovitskiy
Hello!
Quoted 13 lines
Hi
Quoted 3 lines
Does Reiser4 fs support resize as reiserfs ?
nop, sorry..
Quoted 5 lines
If yes which tool I have to use to enlarge my reiser4 fs ?
---
Best regards, Oleg O. Osovitskiy
mailto:[email protected], icq# 33366588
Hi there,
While playing with LVM today I was wondering about that too.
How hard would that be?
(What will follow are just assumptions from my memories of writing FS, so sorry if I'm way off with R4)
- Growing should not be too hard as only the main table would need to be changed no?
- As for shrinking I see 2 cases:
a- There is no data beyond my desired new end, it looks like I only need to modify the table b- There is some data bothering us, now we need to pull it the same way as a repacker would do I believe.
The first 2 cases look easy. For the last it would need something close to a defrag.
So again, how hard would it be to write a dirty resizer? I have no Linux or R4 dev knowledge, but I have a lot spare time and I'm willing to put some of my data at risk. C is not an issue either. Do you think I can try something if you give me some pointers or am I just day-dreaming?
Thanks,
John
Quoted 18 lines · John
Quoted 7 lines · Edward Shishkin
Hello.
Yeah, indeed, I have reproduced it for reg40 (default plugin):
tar process is in permanent "+D" state. After reboot all files were successfully deleted, although there is some leak of free disk space there.Quoted 7 lines
Ok, I'll take a look at this more carefully (I guess
-ENOSPCerror is handled incorrectly somewhere).If you have a problems with deleting files on reg40 partition, then please pack your metadata by
debugfs.reiser4 -P/dev/xxx| gzip > meta.gz
and let me download the file meta.gz
Quoted 5 lines
My FS is currently no full and with no bug, so I hope these are the metadata you wanted.
If not I'll fill it again and send it to you again
Eventually I have not downloaded this:
It said "No free slots available for your country" ;)
Well, don't bother with this for a while:
I have caught a mutex leak in cryptcompress plugin, (fixup is attached) this explains undeletable files in ccreg40.
I'll try fo fix unix-file plugin a bit later.
Thanks,
Edward.
Quoted 18 lines
(sorry I cannot send a file that big by e-mail)
Quoted 3 lines
I don' t see such problems with ccreg40 (compression plugin). Please, let me know, if something goes wrong here..
I just tried and had the same issue with a ccreg40 partition.
I could not remove all the files, and when I tried it just froze my shell. After killing my shell I was able to reboot but not to umount the partition. This is the debugfs output:http://www.megaupload.com/?d=CBEGIFDL
I also wanted to join an fsck output but I don't know how to do that.
Basically the results were in checking the semantic tree
FSCK:obj40_repair.c223:obj40_stat_unix_check: Node (XYZ), item (a), [fgfdgf:fgfdggdf:fhgfhgf] (stat40): wrong bytes (ABCDE), fixed to (EFC).
Quoted 9 lines
(obviously this is some sort of templated message, they were all like that...)
Thank you,
John
--- linux-2.6.23-mm1/fs/reiser4/plugin/file/cryptcompress.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
fs/reiser4/plugin/file/cryptcompress.c renamed from fs/reiser4/plugin/file/cryptcompress.c.orig +4 -3
@@ -2721,7 +2721,8 @@if (result) goto out;if (cont->state ==PSCHED_ASSIGNED_NEW ) - goto out_no_release; +/* done_lh was called in write_pschedule_hook */ + goto out_no_longterm_lock; result =prepare_logical_cluster (inode, pos, count, &clust,LC_APPOV );
@@ -2793,9 +2794,9 @@ }while (count); out:done_lh (&hint->lh); -mutex_unlock (&info->checkin_mutex);save_file_hint (file, hint); - out_no_release: + out_no_longterm_lock: +mutex_unlock (&info->checkin_mutex);kfree (hint);put_cluster_handle (&clust); assert("edward-195",
Quoted 27 lines · Edward Shishkin
Quoted 16 lines · John
Quoted 7 lines · Edward Shishkin
Hello.
Yeah, indeed, I have reproduced it for reg40 (default plugin):
tar process is in permanent "+D" state. After reboot all files were successfully deleted, although there is some leak of free disk space there.Quoted 7 lines
Ok, I'll take a look at this more carefully (I guess
-ENOSPCerror is handled incorrectly somewhere).If you have a problems with deleting files on reg40 partition, then please pack your metadata by
debugfs.reiser4 -P/dev/xxx| gzip > meta.gz
and let me download the file meta.gzQuoted 7 lines
My FS is currently no full and with no bug, so I hope these are the metadata you wanted. If not I'll fill it again and send it to you again
Quoted 11 lines
Eventually I have not downloaded this:
It said "No free slots available for your country" ;)Well, don't bother with this for a while:
I have caught a mutex leak in cryptcompress plugin, (fixup is attached) this explains undeletable files in ccreg40.I'll try fo fix unix-file plugin a bit later.
I have found some ancient bugs related to tail conversion. In particular, it take place when application writes by chunks < 20K in no-space-left-on-device situation (for example, tar, which uses 10240 bytes chunks by default).
The bugs are:
. leak of per-inode exclusive access;
. leak of per-inode flag REISER4_PART_IN_CONV
All of them are responsible for reported deadlocks , and, perhaps can lead to data corruptions.
The fixup is attached.
There still takes place a silent leak of free disk space, when applications runs in no-space-left-on-device situation. This is also related only to (default) unix-file plugin with (default) "smart" formatting policy. Hope to address it soon..
Thanks for reports,
Edward.
Quoted 46 lines
Quoted 46 lines
(sorry I cannot send a file that big by e-mail)
Quoted 2 lines
I don' t see such problems with ccreg40 (compression plugin). Please, let me know, if something goes wrong here..
I just tried and had the same issue with a ccreg40 partition.
I could not remove all the files, and when I tried it just froze my shell. After killing my shell I was able to reboot but not to umount the partition. This is the debugfs output:http://www.megaupload.com/?d=CBEGIFDL
I also wanted to join an fsck output but I don't know how to do that.
Basically the results were in checking the semantic tree
FSCK:obj40_repair.c223:obj40_stat_unix_check: Node (XYZ), item (a), [fgfdgf:fgfdggdf:fhgfhgf] (stat40): wrong bytes (ABCDE), fixed to (EFC).(obviously this is some sort of templated message, they were all like that...)
Thank you,
John
------------------------------------------------------------------------
---
linux-2.6.23-mm1/fs/reiser4/plugin/file/cryptcompress.c| 7 ++++---1 files changed, 4 insertions(+), 3 deletions(-)fs/reiser4/plugin/file/cryptcompress.c renamed from fs/reiser4/plugin/file/cryptcompress.c.orig +2
-1@@ -2721,7 +2721,8 @@if (result) goto out;if (cont->state ==PSCHED_ASSIGNED_NEW ) - goto out_no_release; +/* done_lh was called in write_pschedule_hook */ + goto out_no_longterm_lock;
Quoted 16 lines
Quoted 6 lines
fs/reiser4/plugin/file/cryptcompress.c renamed from fs/reiser4/plugin/file/cryptcompress.c.orig +0
-0result =prepare_logical_cluster (inode, pos, count, &clust,LC_APPOV );@@ -2793,9 +2794,9 @@ }while (count);fs/reiser4/plugin/file/cryptcompress.c line 2802
Quoted 10 lines
fs/reiser4/plugin/file/cryptcompress.c renamed from fs/reiser4/plugin/file/cryptcompress.c.orig +2
-2out:done_lh (&hint->lh); -mutex_unlock (&info->checkin_mutex);save_file_hint (file, hint); - out_no_release: + out_no_longterm_lock: +mutex_unlock (&info->checkin_mutex);kfree (hint);put_cluster_handle (&clust); assert("edward-195",
--- linux-2.6.23-mm1/fs/reiser4/plugin/file/cryptcompress.c | 7 +-- linux-2.6.23-mm1/fs/reiser4/plugin/file/file.c | 8 ++- linux-2.6.23-mm1/fs/reiser4/plugin/file/tail_conversion.c | 29 +++++++++----- linux-2.6.23-mm1/fs/reiser4/plugin/item/internal.c | 18 ++++++-- 4 files changed, 43 insertions(+), 19 deletions(-)
fs/reiser4/plugin/file/cryptcompress.c renamed from fs/reiser4/plugin/file/cryptcompress.c.orig +4 -3
@@ -2721,7 +2721,8 @@if (result) goto out;if (cont->state ==PSCHED_ASSIGNED_NEW ) - goto out_no_release; +/* done_lh was called in write_pschedule_hook */ + goto out_no_longterm_lock; result =prepare_logical_cluster (inode, pos, count, &clust,LC_APPOV );
@@ -2793,9 +2794,9 @@ }while (count); out:done_lh (&hint->lh); -mutex_unlock (&info->checkin_mutex);save_file_hint (file, hint); - out_no_release: + out_no_longterm_lock: +mutex_unlock (&info->checkin_mutex);kfree (hint);put_cluster_handle (&clust); assert("edward-195",
fs/reiser4/plugin/file/file.c renamed from fs/reiser4/plugin/file/file.c.orig +6 -2
@@ -2201,8 +2201,11 @@ }if (uf_info->container ==UF_CONTAINER_TAILS ) { result =tail2extent (uf_info); -if (result) +if (result) { +drop_exclusive_access (uf_info); +context_set_commit_async (ctx);break ; + } } }drop_exclusive_access (uf_info);
@@ -2244,7 +2247,7 @@ current->backing_dev_info =NULL ;drop_access (uf_info);context_set_commit_async (ctx); -return result; +break ; }drop_access (uf_info); ea =NEITHER_OBTAINED ;
@@ -2315,6 +2318,7 @@ !rofs_inode(inode)) { result =extent2tail (file, uf_info);if (result !=0 ) { +context_set_commit_async (ctx); warning("nikita-3233", "Failed (%d) to convert in %s (%llu)", result, __FUNCTION__,
fs/reiser4/plugin/file/tail_conversion.c renamed from fs/reiser4/plugin/file/tail_conversion.c.orig +20 -9
@@ -133,9 +133,11 @@for (i =0 ; i < nr_pages; i++) {if (pages[i] ==NULL ) { +#if REISER4_DEBUG unsigned j;for (j = i +1 ; j < nr_pages; j++)assert ("vs-1620" , pages[j] ==NULL ); +#endif break ; }page_cache_release (pages[i]);
@@ -348,8 +350,10 @@while (done ==0 ) {memset (pages,0 ,sizeof (pages)); result =reserve_tail2extent_iteration (inode); -if (result !=0 ) +if (result !=0 ) { +reiser4_inode_clr_flag (inode,REISER4_PART_IN_CONV ); goto out; + }if (first_iteration) {reiser4_inode_set_flag (inode,REISER4_PART_MIXED );reiser4_update_sd (inode);
@@ -494,11 +498,9 @@ REISER4_PART_MIXED)); } } - -reiser4_inode_clr_flag (inode,REISER4_PART_IN_CONV ); -if (result ==0 ) {/* file is converted to extent items */ +reiser4_inode_clr_flag (inode,REISER4_PART_IN_CONV );assert ("vs-1697" ,reiser4_inode_get_flag (inode,REISER4_PART_MIXED ));
@@ -507,16 +509,21 @@ }else {/* * conversion is not complete. Inode was already marked as -* REISER4_PART_CONV and stat-data were updated at the first +* REISER4_PART_MIXED and stat-data were updated at the first * iteration of the loop above. */ - error: + error:release_all_pages (pages,sizeof_array (pages)); -warning ("nikita-2282" ,"Partial conversion of %llu: %i" , +reiser4_inode_clr_flag (inode,REISER4_PART_IN_CONV ); +warning ("edward-1548" ,"Partial conversion of %llu: %i" , (unsigned long long )get_inode_oid (inode), result); } - out: + out: +/* this assertion is to make sure get_exclusive_access_careful() +won't fall into deadlock loop */ +assert ("edward-1549" , !reiser4_inode_get_flag (inode, +REISER4_PART_IN_CONV ));return result; }
@@ -703,7 +710,7 @@ }/* * conversion is not complete. Inode was already marked as -* REISER4_PART_MIXED and stat-data were updated at the first * +* REISER4_PART_MIXED and stat-data were updated at the first * iteration of the loop above. */ warning("nikita-2282",
@@ -711,6 +718,10 @@ (unsigned long long )get_inode_oid (inode), i, num_pages, result); +/* this assertion is to make sure get_exclusive_access_careful() +won't fall into deadlock loop */ +assert ("edward-1550" , !reiser4_inode_get_flag (inode, +REISER4_PART_IN_CONV ));return result; }
fs/reiser4/plugin/item/internal.c renamed from fs/reiser4/plugin/item/internal.c.orig +13 -5
@@ -308,15 +308,23 @@ struct carry_kill_data *p UNUSED_ARG) {znode *child; +int result =0 ;assert ("nikita-1222" , item !=NULL );assert ("nikita-1224" , from ==0 );assert ("nikita-1225" , count ==1 ); child =znode_at (item, item->node); +if (child ==NULL ) +return 0 ;if (IS_ERR (child))return PTR_ERR (child); -else if (node_is_empty (child)) { + result =zload (child); +if (result) { +zput (child); +return result; + } +if (node_is_empty (child)) {reiser4_tree *tree;assert ("nikita-1397" ,znode_is_write_locked (child));
@@ -328,14 +336,14 @@init_parent_coord (&child->in_parent,NULL ); --item->node->c_count;write_unlock_tree (tree); -zput (child); -return 0 ; }else {warning ("nikita-1223" ,"Cowardly refuse to remove link to non-empty node" ); -zput (child); -return RETERR (-EIO ); + result =RETERR (-EIO ); } +zrelse (child); +zput (child); +return result; }/* hook called by ->shift() node plugin method when iternal item was just
Quoted 55 lines · Edward Shishkin
Quoted 4 lines · Edward Shishkin
Quoted 1 line · John
On Sun, 02 Mar 2008 13:17:12 +0300, Edward Shishkin
Quoted 10 lines · <[email protected]> wrote:
Quoted 10 lines
Quoted 10 lines
Hello.
Yeah, indeed, I have reproduced it for reg40 (default plugin):
tar process is in permanent "+D" state. After reboot all files were successfully deleted, although there is some leak of free disk space there.Ok, I'll take a look at this more carefully (I guess
-ENOSPCerror is handled incorrectly somewhere).Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
If you have a problems with deleting files on reg40 partition, then please pack your metadata by
debugfs.reiser4 -P/dev/xxx| gzip > meta.gz
and let me download the file meta.gzMy FS is currently no full and with no bug, so I hope these are the
metadata you wanted.
Quoted 7 lines
Quoted 6 lines
If not I'll fill it again and send it to you again
Quoted 11 lines
Eventually I have not downloaded this:
It said "No free slots available for your country" ;)Well, don't bother with this for a while:
I have caught a mutex leak in cryptcompress plugin, (fixup is attached) this explains undeletable files in ccreg40.I'll try fo fix unix-file plugin a bit later.
I have found some ancient bugs related to tail conversion. In particular, it take place when application writes by chunks < 20K in no-space-left-on-device situation (for example, tar, which uses 10240 bytes chunks by default).
The bugs are:
. leak of per-inode exclusive access;
. leak of per-inode flagREISER4_PART_IN_CONV
All of them are responsible for reported deadlocks , and, perhaps can lead to data corruptions.The fixup is attached.
Quoted 8 lines
There still takes place a silent leak of free disk space, when applications runs in no-space-left-on-device situation. This is also related only to (default) unix-file plugin with (default) "smart" formatting policy. Hope to address it soon..
Thanks for reports,
Edward.
Hello Edward,
Would you like me to test something particular now?
I was waiting for 2.6.25 to compile again but I can do it before if you want.
My configuration changed a little bit, now all my reiser4 partitions are ccreg40, but I can replace swap for a reg40 partition to test it...
Thank you for your help,
John
Quoted 85 lines · John
Quoted 70 lines · Edward Shishkin
Quoted 8 lines · Edward Shishkin
Quoted 3 lines · John
On Sun, 02 Mar 2008 13:17:12 +0300, Edward Shishkin
Quoted 16 lines · <[email protected]> wrote:
Quoted 16 lines
Quoted 16 lines
Hello.
Yeah, indeed, I have reproduced it for reg40 (default plugin):
tar process is in permanent "+D" state. After reboot all files were successfully deleted, although there is some leak of free disk space there.Ok, I'll take a look at this more carefully (I guess
-ENOSPCerror is handled incorrectly somewhere).If you have a problems with deleting files on reg40 partition, then please pack your metadata by
debugfs.reiser4 -P/dev/xxx| gzip > meta.gz
and let me download the file meta.gzQuoted 3 lines
Quoted 3 lines
My FS is currently no full and with no bug, so I hope these are the
metadata you wanted.
Quoted 8 lines
Quoted 8 lines
If not I'll fill it again and send it to you again
Quoted 13 lines
Eventually I have not downloaded this:
It said "No free slots available for your country" ;)Well, don't bother with this for a while:
I have caught a mutex leak in cryptcompress plugin, (fixup is attached) this explains undeletable files in ccreg40.I'll try fo fix unix-file plugin a bit later.
I have found some ancient bugs related to tail conversion. In particular, it take place when application writes by chunks < 20K in no-space-left-on-device situation (for example, tar, which uses 10240 bytes chunks by default).
The bugs are:
. leak of per-inode exclusive access;
. leak of per-inode flagREISER4_PART_IN_CONV
All of them are responsible for reported deadlocks , and, perhaps can lead to data corruptions.The fixup is attached.
Quoted 10 lines
There still takes place a silent leak of free disk space, when applications runs in no-space-left-on-device situation. This is also related only to (default) unix-file plugin with (default) "smart" formatting policy. Hope to address it soon..
Thanks for reports,
Edward.
Quoted 7 lines
Hello Edward,
Would you like me to test something particular now? I was waiting for 2.6.25 to compile again but I can do it before if you want. My configuration changed a little bit, now all my reiser4 partitions are ccreg40, but I can replace swap for a reg40 partition to test it...
Not in urgent need of this.
Just make sure you have previous patch applied (for ccreg40 to work properly).
Thanks,
Edward.