Re: add caveats section in newfs about endianess

2019-08-28 Thread Solene Rapenne
> Or, you could explain this more as an attribute of the filesystem:
> 
> FFS filesystems are byte-order dependent, and thus not portable to
> systems with a different endianness.
> 
> (two n in endianness)
> 
> 

what about this text in mount_ffs(8) where it makes more sense?


Index: mount_ffs.8
===
RCS file: /data/cvs/src/sbin/mount_ffs/mount_ffs.8,v
retrieving revision 1.18
diff -u -p -r1.18 mount_ffs.8
--- mount_ffs.8 6 Oct 2016 13:16:21 -   1.18
+++ mount_ffs.8 28 Aug 2019 17:19:48 -
@@ -77,6 +77,10 @@ For example, /dev/sd0a and 3eb7f9da875cb
 .Sq a
 partition.
 .Pp
+As FFS filesystems are byte-order dependent, 
+.Nm
+will error on a system using a different endianness.
+.Pp
 This command is normally executed per file system by
 .Xr rc 8
 at boot time using the



Re: add caveats section in newfs about endianess

2019-08-19 Thread Theo de Raadt
Solene Rapenne  wrote:

> This diff had a section about endianess of newfs.
> This is not written anywhere that ffs is dependent of endianess.
> 
> Related bug report
> https://marc.info/?l=openbsd-bugs=150242795204995=2
> 
> 
> Index: newfs.8
> ===
> RCS file: /data/cvs/src/sbin/newfs/newfs.8,v
> retrieving revision 1.75
> diff -u -p -r1.75 newfs.8
> --- newfs.8   23 Apr 2019 18:13:11 -  1.75
> +++ newfs.8   19 Aug 2019 15:49:15 -
> @@ -345,3 +345,8 @@ The
>  .Nm
>  command appeared in
>  .Bx 4.2 .
> +.Sh CAVEATS
> +The created filesystem can only be mounted on systems running architectures
> +of the same endianess as the one on which
> +.Nm
> +has been used.

Or, you could explain this more as an attribute of the filesystem:

FFS filesystems are byte-order dependent, and thus not portable to
systems with a different endianness.

(two n in endianness)




add caveats section in newfs about endianess

2019-08-19 Thread Solene Rapenne
This diff had a section about endianess of newfs.
This is not written anywhere that ffs is dependent of endianess.

Related bug report
https://marc.info/?l=openbsd-bugs=150242795204995=2


Index: newfs.8
===
RCS file: /data/cvs/src/sbin/newfs/newfs.8,v
retrieving revision 1.75
diff -u -p -r1.75 newfs.8
--- newfs.8 23 Apr 2019 18:13:11 -  1.75
+++ newfs.8 19 Aug 2019 15:49:15 -
@@ -345,3 +345,8 @@ The
 .Nm
 command appeared in
 .Bx 4.2 .
+.Sh CAVEATS
+The created filesystem can only be mounted on systems running architectures
+of the same endianess as the one on which
+.Nm
+has been used.