Re: Mention available filesystem types for disklabel somewhere

2013-04-06 Thread Theo de Raadt
 I had to search the sources to realise the fat filesystem type is called
 MSDOS. Maybe at least a header can be mentioned in disklabel(8)?

Sorry, everyone knows it is called the MSDOS filesystem.  'FAT' is the new
silly name.

I don't see much value in pointing people from our manual pages to .h files.

 Index: disklabel.8
 ===
 RCS file: /cvs/src/sbin/disklabel/disklabel.8,v
 retrieving revision 1.107
 diff -u -p -r1.107 disklabel.8
 --- disklabel.8   2 Jan 2012 04:38:00 -   1.107
 +++ disklabel.8   6 Apr 2013 13:57:19 -
 @@ -300,6 +300,8 @@ prompt will exit the editor.
  At prompts that request a size,
  .Ql *
  may be entered to indicate the rest of the available space.
 +For a list of available filesystem types see the fstypenames table in
 +.Pa /usr/include/sys/disklabel.h .
  The editor commands are as follows:
  .Bl -tag -width p [unit] 
  .It Cm \? \*(Ba h
 
 -- 
 Michal Mazurek
 



Re: Mention available filesystem types for disklabel somewhere

2013-04-06 Thread Chris Bennett
On Sat, Apr 06, 2013 at 10:48:55AM -0600, Theo de Raadt wrote:
  I had to search the sources to realise the fat filesystem type is called
  MSDOS. Maybe at least a header can be mentioned in disklabel(8)?
 
 Sorry, everyone knows it is called the MSDOS filesystem.  'FAT' is the new
 silly name.
 
 I don't see much value in pointing people from our manual pages to .h files.
 

There are some useful hints shown by setpid in fdisk:

fdisk: 1 setpid 0
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:
 size ]
 
---
  0: 00  0   0   0 -  0   0   0 [   0:
  0 ] unused  
  Partition id ('0' to disable) [0 - FF]: [0] (? for help) ?
  Choose from the following Partition id values:
  00 unused 20 Willowsoft 66 NetWare 386A9
  NetBSD  
  01 DOS FAT-12 24 NEC DOS67 Novell AB
  MacOS X boot
  02 XENIX /27 Win Recovery   68 Novell AF
  MacOS X HFS+
  03 XENIX /usr 38 Theos  69 Novell B7
  BSDI filesy*
  04 DOS FAT-16 39 Plan 9 70 DiskSecure B8
  BSDI swap   
  05 Extended DOS   40 VENIX 286  75 PCIX   BF
  Solaris 
  06 DOS  32MB 41 Lin/Minux DR   80 Minix (old)C0
  CTOS
  07 NTFS   42 LinuxSwap DR   81 Minix (new)C1
  DRDOSs FAT12
  08 AIX fs 43 Linux DR   82 Linux swap C4
  DRDOSs  32M
  09 AIX/Coherent   4D QNX 4.2 Pri83 Linux files*   C6
  DRDOSs =32M
  0A OS/2 Bootmgr   4E QNX 4.2 Sec84 OS/2 hiddenC7
  HPFS Disbled
  0B Win95 FAT-32   4F QNX 4.2 Ter85 Linux ext. DB
  CPM/C.DOS/C*
  0C Win95 FAT32L   50 DM 86 NT FAT VS  DE
  Dell Maint  
  0E DOS FAT-16 51 DM 87 NTFS VSE1
  SpeedStor   
  0F Extended LBA   52 CP/M or SysV   8E Linux LVM  E3
  SpeedStor   
  10 OPUS   53 DM 93 Amoeba FS  E4
  SpeedStor   
  11 OS/2 hidden54 Ontrack94 Amoeba BBT EB
  BeOS/i386   
  12 Compaq Diag.   55 EZ-Drive   99 Mylex  EE
  EFI GPT 
  14 OS/2 hidden56 Golden Bow 9F BSDI   EF
  EFI Sys 
  16 OS/2 hidden5C Priam  A0 NotebookSave   F1
  SpeedStor   
  17 OS/2 hidden61 SpeedStor  A5 FreeBSDF2
  DOS 3.3+ Sec
  18 AST swap   63 ISC, HURD, *   A6 OpenBSDF4
  SpeedStor   
  19 Willowtech 64 NetWare 2.xx   A7 NEXTSTEP   FF
  Xenix BBT   
  1C ThinkPad Rec   65 NetWare 3.xx   A8 MacOS X 
  Partition id ('0' to disable) [0 - FF]: [0] (? for help)
  abort
  'abort' is not a valid number.
  Partition id ('0' to disable) [0 - FF]: [0] (? for help) 0
  fdisk: 1 abort




Re: Mention available filesystem types for disklabel somewhere

2013-04-06 Thread Otto Moerbeek
On Sat, Apr 06, 2013 at 12:43:32PM -0500, Chris Bennett wrote:

 On Sat, Apr 06, 2013 at 10:48:55AM -0600, Theo de Raadt wrote:
   I had to search the sources to realise the fat filesystem type is called
   MSDOS. Maybe at least a header can be mentioned in disklabel(8)?
  
  Sorry, everyone knows it is called the MSDOS filesystem.  'FAT' is the new
  silly name.
  
  I don't see much value in pointing people from our manual pages to .h files.
  
 
 There are some useful hints shown by setpid in fdisk:

fdisk partition id's are not the same things as disklabel filesystem
type names.

-Otto

 
 fdisk: 1 setpid 0
 Starting Ending LBA Info:
#: id  C   H   S -  C   H   S [   start:
size ]

 ---
 0: 00  0   0   0 -  0   0   0 [   0:
 0 ] unused  
 Partition id ('0' to disable) [0 - FF]: [0] (? for help) ?
 Choose from the following Partition id values:
 00 unused 20 Willowsoft 66 NetWare 386A9
 NetBSD  
 01 DOS FAT-12 24 NEC DOS67 Novell AB
 MacOS X boot
 02 XENIX /27 Win Recovery   68 Novell AF
 MacOS X HFS+
 03 XENIX /usr 38 Theos  69 Novell B7
 BSDI filesy*
 04 DOS FAT-16 39 Plan 9 70 DiskSecure B8
 BSDI swap   
 05 Extended DOS   40 VENIX 286  75 PCIX   BF
 Solaris 
 06 DOS  32MB 41 Lin/Minux DR   80 Minix (old)C0
 CTOS
 07 NTFS   42 LinuxSwap DR   81 Minix (new)C1
 DRDOSs FAT12
 08 AIX fs 43 Linux DR   82 Linux swap C4
 DRDOSs  32M
 09 AIX/Coherent   4D QNX 4.2 Pri83 Linux files*   C6
 DRDOSs =32M
 0A OS/2 Bootmgr   4E QNX 4.2 Sec84 OS/2 hiddenC7
 HPFS Disbled
 0B Win95 FAT-32   4F QNX 4.2 Ter85 Linux ext. DB
 CPM/C.DOS/C*
 0C Win95 FAT32L   50 DM 86 NT FAT VS  DE
 Dell Maint  
 0E DOS FAT-16 51 DM 87 NTFS VSE1
 SpeedStor   
 0F Extended LBA   52 CP/M or SysV   8E Linux LVM  E3
 SpeedStor   
 10 OPUS   53 DM 93 Amoeba FS  E4
 SpeedStor   
 11 OS/2 hidden54 Ontrack94 Amoeba BBT EB
 BeOS/i386   
 12 Compaq Diag.   55 EZ-Drive   99 Mylex  EE
 EFI GPT 
 14 OS/2 hidden56 Golden Bow 9F BSDI   EF
 EFI Sys 
 16 OS/2 hidden5C Priam  A0 NotebookSave   F1
 SpeedStor   
 17 OS/2 hidden61 SpeedStor  A5 FreeBSDF2
 DOS 3.3+ Sec
 18 AST swap   63 ISC, HURD, *   A6 OpenBSDF4
 SpeedStor   
 19 Willowtech 64 NetWare 2.xx   A7 NEXTSTEP   FF
 Xenix BBT   
 1C ThinkPad Rec   65 NetWare 3.xx   A8 MacOS X 
 Partition id ('0' to disable) [0 - FF]: [0] (? for help)
 abort
 'abort' is not a valid number.
 Partition id ('0' to disable) [0 - FF]: [0] (? for help) 0
 fdisk: 1 abort