Re: [vdr] read-only video directory

2013-03-07 Thread Steffen Barszus
2013/3/6 Peter Münster pmli...@free.fr:
 On Wed, Mar 06 2013, Stephan Loescher wrote:

 The workaround I use is to mount the server in a subdirectory e.g. mount the
 server-directory to /net/media/data/video/servervideo and start the 
 client-vdr
 like this:
 vdr -Pstreamdev-client -Pxineliboutput -v/net/media/data/video


 On Wed, Mar 06 2013, Udo Richter wrote:

 You can always mount an unionfs or aufs on top of the read only mount,
 and redirect all write access to a local disk or ram disk. That way VDR
 will be able to write its status files without changing the source file
 system.

 Hi Stephan and Udo,

 Unfortunately I don't understand. Could you please show examples?

 I have for example this directory:
 /net/media/data/video/Pippi-geht-von-Bord/2010-07-31.06.55.50.99.rec
 The slave (nfs-client) should read it, but it should not write anything
 to this directory (or its parents). Is this possible with your
 solutions?


With a union filesystem you can mount the lower level read only and
have an upper layer where changes get stored.
So yes - the master file system will for sure not be touched and you
can keep VDR as is and keep full functionality.

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] read-only video directory

2013-03-07 Thread Udo Richter
Am 06.03.2013 21:56, schrieb Peter Münster:
 On Wed, Mar 06 2013, Stephan Loescher wrote:
 On Wed, Mar 06 2013, Udo Richter wrote:
 You can always mount an unionfs or aufs on top of the read only mount,
 and redirect all write access to a local disk or ram disk. That way VDR
 will be able to write its status files without changing the source file
 system.
 
 Hi Stephan and Udo,
 
 Unfortunately I don't understand. Could you please show examples?
 
 I have for example this directory:
 /net/media/data/video/Pippi-geht-von-Bord/2010-07-31.06.55.50.99.rec

Just improvising, haven't tested it, but should give you a hint how to
do it:

- assuming /net/media is an NFS mount or similar
- create a folder /net/media-tmp (optionally mount an tmpfs on it)
- create a folder /net/media-rw
- mount -t aufs -o br:/net/media-tmp:/net/media aufs /net/media-rw

Now you have a virtual copy of /net/media in /net/media-rw, fully
writeable, where all write access goes to /net/media-tmp instead,
leaving /net/media untouched. You can play back
/net/media-rw/data/video/Pippi-geht-von-Bord/2010-07-31.06.55.50.99.rec
just as before, you can even delete it, but the recording will only
disappear within /net/media-rw, the original copy in /net/media stays
untouched.

Cheers,

Udo


___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr