does "reiserfsck --rebuild-sb" require free space?
I have a partial image of a reiserfs partition which takes up all the space on the (reiserfs) parition it sits on. there are 0 bytes free on that partition.
the image was created with dd, and I ran out space when creating it.
when I try to run
reiserfsck --rebuild-sb backup.img
I get the error
bwrite: write 4096 bytes returned -1 (block=16, dev=3): No space left on device
does that make sense?
Omry.
Hello
Quoted 10 lines · Omry Yadan
I have a partial image of a reiserfs partition which takes up all the space on the (reiserfs) parition it sits on.
there are 0 bytes free on that partition.
the image was created with dd, and I ran out space when creating it. when I try to run
reiserfsck --rebuild-sb backup.img
I get the error
bwrite: write 4096 bytes returned -1 (block=16, dev=3): No space left on device
Quoted 2 lines
does that make sense?
Yes. That means that you have hit reiserfsck bug. Vitaly will contact with you soon.
Quoted 2 lines
Omry.
Hello
Quoted 13 lines · Vladimir Saveliev
Hello
Quoted 10 lines · Omry Yadan
I have a partial image of a reiserfs partition which takes up all the space on the (reiserfs) parition it sits on.
there are 0 bytes free on that partition.
the image was created with dd, and I ran out space when creating it. when I try to run
reiserfsck --rebuild-sb backup.img
I get the error
bwrite: write 4096 bytes returned -1 (block=16, dev=3): No space left on device
Quoted 4 lines
Quoted 1 line
does that make sense?
Yes. That means that you have hit reiserfsck bug. Vitaly will contact with you soon.
nothing about reiserfsck here. write to the file asks for some space on the host fs (which is reiserfs also) and there is no any. this looks like the correct behaviour for the fully packed fs as some data needs to be overwritten and access time needs to be updated.
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 18 lines · Vitaly Fertman
Hello
Quoted 15 lines · Vladimir Saveliev
Hello
Quoted 11 lines · Omry Yadan
I have a partial image of a reiserfs partition which takes up all the space on the (reiserfs) parition it sits on.
there are 0 bytes free on that partition.
the image was created with dd, and I ran out space when creating it. when I try to run
reiserfsck --rebuild-sb backup.img
I get the error
bwrite: write 4096 bytes returned -1 (block=16, dev=3): No space left on devicedoes that make sense?
Quoted 7 lines
Quoted 2 lines
Yes. That means that you have hit reiserfsck bug. Vitaly will contact with you soon.
nothing about reiserfsck here. write to the file asks for some space on the host fs (which is reiserfs also) and there is no any. this looks like the correct behaviour for the fully packed fs as some data needs to be overwritten and access time needs to be updated.
the only thing that is not clear yet is why reiserfs needs some blocks here -- the journal space is reserved and the file data will be overwritten on-place, with no temporary locations. thus this could be a reiserfs bug or just-in-case reservation ... this needs to be checked.
you can free some space on the host reiserfs for now and write to the file should succeed then.
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 30 lines · Vitaly Fertman
Quoted 27 lines · Vitaly Fertman
Hello
Quoted 22 lines · Vladimir Saveliev
Hello
Quoted 10 lines · Omry Yadan
I have a partial image of a reiserfs partition which takes up all the space on the (reiserfs) parition it sits on.
there are 0 bytes free on that partition.
the image was created with dd, and I ran out space when creating it. when I try to run
reiserfsck --rebuild-sb backup.img
I get the error
bwrite: write 4096 bytes returned -1 (block=16, dev=3): No space left on deviceQuoted 3 lines
does that make sense?
Yes. That means that you have hit reiserfsck bug. Vitaly will contact with you soon.
Quoted 6 lines
Quoted 6 lines
nothing about reiserfsck here. write to the file asks for some space on the host fs (which is reiserfs also) and there is no any. this looks like the correct behaviour for the fully packed fs as some data needs to be overwritten and access time needs to be updated.
It should write into the file, I don't see how the host file system is relevant here.
what if its a real partition and not an file containing an image?
in that case there is NO host file system at all..
if some data in the file must be overwritten, to make room for the file system overhead, so be it, but I don't see how trying to write outside of the image make sense here. (unless there is a spacial treatment for images).
Quoted 7 lines
the only thing that is not clear yet is why reiserfs needs some blocks here -- the journal space is reserved and the file data will be overwritten on-place, with no temporary locations. thus this could be a reiserfs bug or just-in-case reservation ... this needs to be checked.
you can free some space on the host reiserfs for now and write to the file should succeed then.
Easier said than done, that file system has but one file, which is the image. the only wat to 'free' up some space from it is to truncate the end if the image somehow.
Quoted 23 lines · Omry Yadan
Quoted 22 lines · Vitaly Fertman
Quoted 21 lines · Vitaly Fertman
Hello
Quoted 17 lines · Vladimir Saveliev
Hello
Quoted 11 lines · Omry Yadan
I have a partial image of a reiserfs partition which takes up all the space on the (reiserfs) parition it sits on.
there are 0 bytes free on that partition.
the image was created with dd, and I ran out space when creating it. when I try to run
reiserfsck --rebuild-sb backup.img
I get the error
bwrite: write 4096 bytes returned -1 (block=16, dev=3): No space left on devicedoes that make sense?
Yes. That means that you have hit reiserfsck bug. Vitaly will contact with you soon.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
nothing about reiserfsck here. write to the file asks for some space on the host fs (which is reiserfs also) and there is no any. this looks like the correct behaviour for the fully packed fs as some data needs to be overwritten and access time needs to be updated.
It should write into the file, I don't see how the host file system is relevant here.
host fs returns ENOSPC on the write call.
Quoted 2 lines
what if its a real partition and not an file containing an image? in that case there is NO host file system at all..
and no such a problem at all.
Quoted 4 lines
if some data in the file must be overwritten, to make room for the file system overhead, so be it, but I don't see how trying to write outside of the image make sense here. (unless there is a spacial treatment for images).
reiserfs_file_write needs to be checked as I already mentioned.
Quoted 5 lines
Quoted 5 lines
the only thing that is not clear yet is why reiserfs needs some blocks here -- the journal space is reserved and the file data will be overwritten on-place, with no temporary locations. thus this could be a reiserfs bug or just-in-case reservation ... this needs to be checked.
Quoted 7 lines
Quoted 2 lines
you can free some space on the host reiserfs for now and write to the file should succeed then.
Easier said than done, that file system has but one file, which is the image.
the only wat to 'free' up some space from it is to truncate the end if the image somehow.
btw, it would be not bad to 'reiserfsck --check' the host reiserfs also.
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
you can free some space on the host reiserfs for now and write to the file should succeed then.
Quoted 11 lines
Quoted 6 lines
Easier said than done, that file system has but one file, which is the image.
the only wat to 'free' up some space from it is to truncate the end if the image somehow.btw, it would be not bad to 'reiserfsck --check' the host reiserfs also.
I just did, it was reported to be clean. (no corruptions found).