Re: [Wiki Edits: tmpfs, emacs, fcntl, and nice issues 4/4] edits to the tmpfs page

2024-01-16 Thread jbranso
January 15, 2024 at 8:26 PM, "Diego Nieto Cid"  wrote:



> 
> Hello,
> 
> El dom, 14 ene 2024 a las 23:35, jbra...@dismail.de () 
> escribió:
> 
> > 
> > +      tmpfs rocks!
> > +    $
> > \ No newline at end of file
> > 
> 
> I'm not sure what the policy is for the Wiki but this kind of diff message 
> should be
> avoided by inserting a newline at the end of the file. :-)

Thanks for pointing that out Diego!  I didn't even notice that was there.  
Weird.  I wonder if there is an Emacs setting to automaticall insert newline at 
the end of the file.
 
> Cheers
>



Re: [Wiki Edits: tmpfs, emacs, fcntl, and nice issues 4/4] edits to the tmpfs page

2024-01-15 Thread Diego Nieto Cid
Hello,

El dom, 14 ene 2024 a las 23:35, jbra...@dismail.de ()
escribió:

> +  tmpfs rocks!
> +$
> \ No newline at end of file
>

I'm not sure what the policy is for the Wiki but this kind of diff message
should be
avoided by inserting a newline at the end of the file. :-)

Cheers


[Wiki Edits: tmpfs, emacs, fcntl, and nice issues 4/4] edits to the tmpfs page

2024-01-14 Thread jbra...@dismail.de
* hurd/translator/tmpfs.mdwn: removed "tmpfs requires root
permissions", and I added a short tmpfs example.
---
 hurd/translator/tmpfs.mdwn | 18 +++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/hurd/translator/tmpfs.mdwn b/hurd/translator/tmpfs.mdwn
index 3d5cb74e..4db6542b 100644
--- a/hurd/translator/tmpfs.mdwn
+++ b/hurd/translator/tmpfs.mdwn
@@ -20,6 +20,18 @@ system|ext2fs]] on it, having a real `tmpfs` is better, as 
it need not deal
 with the additional block-level indirection layer that `ext2` (or any other
 disk-based file system) imposes.
 
-`tmpfs` generally works, although it requires root permissions for file 
content;
-see the [[discussion]] sub-pages for the past and current issues.
-There is a [[!FF_project 271]][[!tag bounty]] on this task.
+`tmpfs` generally works.  See the [[discussion]] sub-pages for the
+past and current issues.  There is a [[!FF_project 271]][[!tag
+bounty]] on this task.
+
+## How to use tmpfs
+
+$ settrans -ac tmp /hurd/tmpfs 1MB
+$ cd tmp
+$ touch file
+$ cat file
+
+$ echo "tmpfs rocks!" > ./file
+$ cat file
+  tmpfs rocks!
+$
\ No newline at end of file
-- 
2.43.0