Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

[mythtv-commits] Ticket #7949: Multiple identical partitions on identical drives are listed as only one Mythtv drive

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


f-myth-users at media

Feb 3, 2010, 1:18 AM

Post #1 of 3 (584 views)
Permalink
[mythtv-commits] Ticket #7949: Multiple identical partitions on identical drives are listed as only one Mythtv drive

Yeah, I see the problem with nonces: users might create two SG's that
use different (nonoverlapping) dirs in the same FS. The nonces will
stay distinct but the FS is nonetheless the same.

The place where this really seems to come up (judging by the mail I
see, anyway) is when somebody creates two or more brand-new, identical
filesystems, and makes each into a SG. Typically that happens when
somebody buys two or more brand-new disks and installs them.

Maybe it might make sense (if the idea is to minimize the number of
times users ask the list "why doesn't Myth figure this out?" and not,
say, minimizing code complexity :) to take your case 4 and write out
something "big" (larger than the slop factor currently being used) and
see which FS changes. Do this one at a time, of course. Maybe only
do it if the free space looks like it's "most of the device", whatever
that means.

Probably this has been mentioned before; I know I've seen these
discussions go by but I'm not recalling the details, so this is
an ill-considered proposal at best. Obviously more complexity
for a corner case.

Or maybe augment the UI to put a * next to SG's that appear empty and
a footnote that says "Nothing's been written to this SG yet, so I may
have confused it with another. This problem will go away on its own
once it starts being used" and then it's just another string to add to
the translation database instead... :)
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


cpinkham at bc2va

Feb 3, 2010, 10:19 AM

Post #2 of 3 (551 views)
Permalink
Re: [mythtv-commits] Ticket #7949: Multiple identical partitions on identical drives are listed as only one Mythtv drive [In reply to]

* On Wed Feb 03, 2010 at 04:18:39AM -0500, f-myth-users [at] media wrote:
> The place where this really seems to come up (judging by the mail I
> see, anyway) is when somebody creates two or more brand-new, identical
> filesystems, and makes each into a SG. Typically that happens when
> somebody buys two or more brand-new disks and installs them.

I've been considering the possibility of having the master resolve
the situation automatically without waiting for a recording by having
the affected backends write out a random-sized 0-10 megabyte file
then redoing the space calculations, but it hasn't bugged me enough
to write a patch yet. Another possibility is to just assume they are
not the same if they are near-empty and of equal size. This is the
easiest thing to do because it's a simple if statement in the current
code. Again, patches welcome if someone wants to take a look. Worst
case is that we record multiple shows to the same filesystem without
knowing if the same empty filesystem is referenced multiple times.

--
Chris
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mythtv-dev2 at dwilga-linux1

Feb 3, 2010, 10:49 AM

Post #3 of 3 (547 views)
Permalink
Re: [mythtv-commits] Ticket #7949: Multiple identical partitions on identical drives are listed as only one Mythtv drive [In reply to]

On 2/3/10 1:19 PM, Chris Pinkham wrote:
> I've been considering the possibility of having the master resolve
> the situation automatically without waiting for a recording by having
> the affected backends write out a random-sized 0-10 megabyte file

Why not just write a zero-length file with a unique name to each drive,
and see if any file exists in more than one place? Surely a directory
read or fopen would be faster than recalculating free space a second time.
--
Dan Wilga "Ook."
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.