[Parted-maintainers] Bug#298020: parted: hfs(+) support is still poorly documented

Nikolaus Schulz Nikolaus Schulz <microschulz@web.de>, 298020@bugs.debian.org
Thu, 5 May 2005 02:29:18 +0200


--0OAP2g/MAC+5xKAE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

retitle 298020 parted: hfs(+) support is still poorly documented
tags 298020 +patch
thanks

I'm retitling to the bug to its original title, since in fact the info
manual is still affected. Jens Schmalzings patch from bug #275650 was
incomplete and incorrect.

On Wed, May 04, 2005 at 05:30:58PM +0200, Sven Luther wrote:
> > now Sarge's frozen (whoohoo!) and it's time to fix remaining issues with
> > packages in Sarge. What about picking up this item, too?
> 
> Huh, never even noticed. ... goes reading d-d-a, ... well, ok yes it is
> frozen.

:-)

> Doens't change a thing as regard to parted though, as it was frozen in august.

Ah. I guess it's part of d-i? I'm not familiar with d-i organization. 

> > > > > possibly, if not i will backport the fix.
> > 
> > Do you plan to do so? That would be really nice. 
> 
> Don't know, i didn't really had plans to do a new parted upload, but was
> intenting to upload a experimental version with HFS+ journaling resize
> support. Worked fine when i did so on sunday.

That's nice to hear (although it doesn't effect Sarge).

> i am too busted right now by 11 + 7 hours of jet-lag to really follow up on
> this, ping me again this WE if i have not acted about this by then.

Thanks for your quick reply. I'll expect a pause on your part then... 
I will be quite busy over the weekend myself. 

> > If you still feel burdened with higher-priority tasks, please say so and
> > I will try to make a patch happen, somehow. *sigh* 
> 
> Please provide a patch. Or better speak with K.G. and make one happen upstream
> that i can backport.

Well, originally, the bug referred to the package description(s) for the
most part, so it was Debian specific... And I still don't know who's K.G.
:-) AFAICS Andrew Clausen is upstream, though seeking for a new
maintainer. 

However, I just checked out upstream parted 1.6.22, which merged the HFS+
patch, and diff'ed the docs against 1.6.21. It was pretty easy to
extract the changes to the documentation wrt HFS+. They are fully
appliciable to the HFS support of Debian's parted 1.6.21. So there's no
need to bother upstream. I've added fixes to the debian/control file
and README.Debian; please review the attached patch.  It applies against
the patched source.

Note that the patch excludes parted.info, which is part of the source
package for some reason, but should be (is?) an automatically generated
file, of course. 

> > Better make things not perfect than not doing things at all. 
> 
> Well, parted is frozen since forever, and the version in rc3 is the last one.

Hmm. A documentation-only upload should be possible, right?


Regards,
Nikolaus


--0OAP2g/MAC+5xKAE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="parted-hfsdoc.diff"

diff -Naur --exclude='*.info' parted-1.6.21.orig/debian/control parted-1.6.21/debian/control
--- parted-1.6.21.orig/debian/control	2005-05-04 23:01:42.296211000 +0200
+++ parted-1.6.21/debian/control	2005-05-04 23:52:23.298908472 +0200
@@ -25,9 +25,10 @@
  disk) type which allows use on RAID/LVM. Filesystems which
  are currently fully supported are ext2, ext3, fat (FAT16
  and FAT32), ReiserFS (with libreiserfs) and linux-swap.
- Parted can also detect and remove HFS (Mac OS), JFS, NTFS,
- UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems,
- but cannot create, resize or check these filesystems yet.
+ Parted can detect and resize HFS(+) (MacOS) partitions, it can
+ also detect and remove JFS, NTFS, UFS (Sun and HP), XFS and
+ ASFS/AFFS/APFS (Amiga) filesystems, but cannot create, resize
+ or check these filesystems yet. 
  .
  Note that ReiserFS support is only enabled if you install
  the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been
@@ -86,9 +87,10 @@
  disk) type which allows use on RAID/LVM. Filesystems which
  are currently fully supported are ext2, ext3, fat (FAT16
  and FAT32), ReiserFS (with libreiserfs) and linux-swap.
- Parted can also detect and remove HFS (Mac OS), JFS, NTFS,
- UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems,
- but cannot create, resize or check these filesystems yet.
+ Parted can detect and resize HFS(+) (MacOS) partitions, it can
+ also detect and remove JFS, NTFS, UFS (Sun and HP), XFS and
+ ASFS/AFFS/APFS (Amiga) filesystems, but cannot create, resize
+ or check these filesystems yet. 
  .
  Note that ReiserFS support is only enabled if you install
  the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been
@@ -123,9 +125,10 @@
  disk) type which allows use on RAID/LVM. Filesystems which
  are currently fully supported are ext2, ext3, fat (FAT16
  and FAT32), ReiserFS (with libreiserfs) and linux-swap.
- Parted can also detect and remove HFS (Mac OS), JFS, NTFS,
- UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems,
- but cannot create, resize or check these filesystems yet.
+ Parted can detect and resize HFS(+) (MacOS) partitions, it can
+ also detect and remove JFS, NTFS, UFS (Sun and HP), XFS and
+ ASFS/AFFS/APFS (Amiga) filesystems, but cannot create, resize
+ or check these filesystems yet. 
  .
  Note that ReiserFS support is only enabled if you install
  the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been
@@ -159,9 +162,10 @@
  disk) type which allows use on RAID/LVM. Filesystems which
  are currently fully supported are ext2, ext3, fat (FAT16
  and FAT32), ReiserFS (with libreiserfs) and linux-swap.
- Parted can also detect and remove HFS (Mac OS), JFS, NTFS,
- UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems,
- but cannot create, resize or check these filesystems yet.
+ Parted can detect and resize HFS(+) (MacOS) partitions, it can
+ also detect and remove JFS, NTFS, UFS (Sun and HP), XFS and
+ ASFS/AFFS/APFS (Amiga) filesystems, but cannot create, resize
+ or check these filesystems yet. 
  .
  Note that ReiserFS support is only enabled if you install
  the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been
@@ -197,9 +201,10 @@
  disk) type which allows use on RAID/LVM. Filesystems which
  are currently fully supported are ext2, ext3, fat (FAT16
  and FAT32), ReiserFS (with libreiserfs) and linux-swap.
- Parted can also detect and remove HFS (Mac OS), JFS, NTFS,
- UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems,
- but cannot create, resize or check these filesystems yet.
+ Parted can detect and resize HFS(+) (MacOS) partitions, it can
+ also detect and remove JFS, NTFS, UFS (Sun and HP), XFS and
+ ASFS/AFFS/APFS (Amiga) filesystems, but cannot create, resize
+ or check these filesystems yet. 
  .
  Note that ReiserFS support is only enabled if you install
  the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been
@@ -238,9 +243,10 @@
  disk) type which allows use on RAID/LVM. Filesystems which
  are currently fully supported are ext2, ext3, fat (FAT16
  and FAT32), ReiserFS (with libreiserfs) and linux-swap.
- Parted can also detect and remove HFS (Mac OS), JFS, NTFS,
- UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems,
- but cannot create, resize or check these filesystems yet.
+ Parted can detect and resize HFS(+) (MacOS) partitions, it can
+ also detect and remove JFS, NTFS, UFS (Sun and HP), XFS and
+ ASFS/AFFS/APFS (Amiga) filesystems, but cannot create, resize
+ or check these filesystems yet. 
  .
  Note that ReiserFS support is only enabled if you install
  the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been
diff -Naur --exclude='*.info' parted-1.6.21.orig/debian/README.Debian parted-1.6.21/debian/README.Debian
--- parted-1.6.21.orig/debian/README.Debian	2005-05-04 23:01:42.288212000 +0200
+++ parted-1.6.21/debian/README.Debian	2005-05-04 23:43:35.455152920 +0200
@@ -19,15 +19,16 @@
 ext3            | *     |       | *[1]  | *[2]  | *[3]
 fat16           | *     | *     | *[4]  | *[4]  | *
 fat32           | *     | *     | *     | *     | *
-hfs             | *     |       |       |       |
+hfs             | *     |       | *[1,5]|       |
 jfs             | *     |       |       |       |
 linux-swap      | *     | *     | *     | *     | *
 ntfs            | *     |       |       |       |
-reiserfs        | *     | *[5]  | *[1,5]| *[5]  | *[3,5]
+reiserfs        | *     | *[6]  | *[1,6]| *[6]  | *[3,6]
 ufs             | *     |       |       |       |
 xfs             | *     |       |       |       |
 
-[1] Parted can't move the start of ext2 or ext3 partitions (yet).
+[1] The start of the partition must stay fixed for ext2, ext3,
+    reiserfs, hfs and hfs+.
 [2] The size of the partition you copy to must be greater than or equal to
     the size of the partition you copy from.
 [3] Limited checking is done when the filesystem is opened, this is the
@@ -35,7 +36,8 @@
 [4] The size of the new partition, after resizing or copying, is restricted
     by the cluster size for fat (mainly affects FAT16). Parted can shrink
     cluster sizes, but cannot grow them on FAT16.
-[5] ReiserFS support is enabled if you install libreiserfs, currently in the
+[5] Parted can only shrink hfs and hfs+ file systems.
+[6] ReiserFS support is enabled if you install libreiserfs, currently in the
     libreiserfs0.3-0 package. Since libreiserfs0.3-0 is no more in sarge, the
     reiserfs create/resize/copy/check support is not built in in the debian package.
  
diff -Naur --exclude='*.info' parted-1.6.21.orig/doc/parted.texi parted-1.6.21/doc/parted.texi
--- parted-1.6.21.orig/doc/parted.texi	2005-01-15 23:04:59.000000000 +0100
+++ parted-1.6.21/doc/parted.texi	2005-05-04 23:02:26.443499744 +0200
@@ -998,7 +998,9 @@
 the old @var{start}.
 
 @item fat16, fat32
-
+@item hfs, hfs+ - restriction: the new @var{start} must be the same as
+the old @var{start} and the new @var{end} must be smaller than the old
+@var{end}. Journaled hfs+ and hfsx is not yet supported.
 @item linux-swap
 @item reiserfs (if libreiserfs is installed)
 @end itemize
@@ -2120,11 +2122,11 @@
 @item ext3 @tab	* @tab @tab *1 @tab *2 @tab *3
 @item fat16 @tab * @tab * @tab *4 @tab *4 @tab *
 @item fat32 @tab * @tab * @tab * @tab * @tab *
-@item hfs @tab * @tab * @tab * @tab @tab
+@item hfs / hfs+ @tab * @tab @tab *1,5 @tab @tab
 @item jfs @tab * @tab @tab @tab @tab
 @item linux-swap @tab * @tab * @tab * @tab * @tab *
 @item ntfs @tab * @tab @tab @tab @tab
-@item reiserfs @tab * @tab *5 @tab *1,5 @tab *5 @tab *3,5
+@item reiserfs @tab * @tab *6 @tab *1,6 @tab *6 @tab *3,6
 @item ufs @tab * @tab @tab @tab @tab
 @item xfs @tab * @tab @tab @tab @tab
 @end multitable
@@ -2133,7 +2135,8 @@
 @c notes associated to entries in the above matrix.  That's bad.
 
 @noindent NOTES:
-(1) The start of the partition must stay fixed for ext2, ext3 and reiserfs.
+(1) The start of the partition must stay fixed for ext2, ext3, reiserfs, hfs and
+hfs+.
 
 (2) The partition you copy to must be bigger (or exactly the same size)
 as the partition you copy from.
@@ -2156,9 +2159,10 @@
 Summary: you can always shrink your partition.  If you can't use FAT32
 for some reason, you may not be able to grow your partition.
 
-(5) Reiserfs support is enabled if you install libreiserfs, available at
-@uref{http://reiserfs.osdn.org.ua}.  (It is likely to be availabe soon from
-www.namesys.com... tell us if/when this happens!)
+(5) Parted can only shrink hfs and hfs+ file systems.
+
+(6) Reiserfs support is enabled if you install libreiserfs, which is available
+at @uref{http://www.namesys.com/pub/libreiserfs}.
 
 @node Ext2
 @section GNU Parted and the Second Extended Filesystem

--0OAP2g/MAC+5xKAE--