Changes by: szaka
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27524/ntfsprogs
Modified Files:
ntfsresize.c ntfsresize.8.in
Log Message:
Support resizing into the middle of a $MFT $DATA extent
Index: ntfsresize.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsresize.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -p -r1.79 -r1.80
--- ntfsresize.c 24 Jul 2005 22:34:36 -0000 1.79
+++ ntfsresize.c 25 Jul 2005 20:40:07 -0000 1.80
@@ -759,16 +759,10 @@ static void collect_relocation_info(ntfs
start = new_vol_size;
len = lcn_length - (new_vol_size - lcn);
- if (!opt.info && (inode == FILE_MFT || inode == FILE_MFTMirr)) {
- s64 last_lcn;
-
- err_printf("$MFT%s can't be split up yet. Please try "
- "a different size.\n", inode ? "Mirr" : "");
- last_lcn = lcn + lcn_length - 1;
- if (!(inode == FILE_MFT && rl->vcn == 0) &&
- lcn - 1 >= resize->inuse)
- __print_advise(resize->vol, lcn - 1);
- print_advise(resize->vol, last_lcn);
+ if (!opt.info && (inode == FILE_MFTMirr)) {
+ err_printf("$MFTMirr can't be split up yet. Please try "
+ "a different size.\n");
+ print_advise(resize->vol, lcn + lcn_length - 1);
exit(1);
}
}
Index: ntfsresize.8.in
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsresize.8.in,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -p -r1.21 -r1.22
--- ntfsresize.8.in 24 Jul 2005 22:34:36 -0000 1.21
+++ ntfsresize.8.in 25 Jul 2005 20:40:07 -0000 1.22
@@ -183,9 +183,9 @@ to approve your post.
.PP
There are a few very rarely met restrictions at present: filesystems having
unknown bad sectors, relocation
-of the first MFT extent and resizing in the middle of some metadata
-in some cases aren't supported yet. These cases are detected and
-resizing is refused, restricted to a safe size or the closest safe
+of the first MFT extent and resizing into the middle of a $MFTMirr extent
+aren't supported yet. These cases are detected and
+resizing is restricted to a safe size or the closest safe
size is displayed.
.PP
.B Ntfsresize
|