startup question

Chas. Owens chas.owens at gmail.com
Tue Feb 12 11:36:30 EST 2008


On Feb 12, 2008 10:20 AM, Tomeu Vizoso <tomeu at tomeuvizoso.net> wrote:
> On Tue, 2008-02-12 at 08:37 -0500, Mikus Grinbergs wrote:
> > I'm used to "regular" Linux, where I can access files from a command
> > without having to go through the Journal.  I have an SD card in my
> > XO, on which I keep files regarding setting up / customizing the XO.
> >
> > Apparently, the XO goes out and "scans" my SD card, so that it can
> > show me the SD content if I were to click on the SD icon in the
> > Journal view.  Is there a way for me to __inhibit__ this scan of the
> > SD card -- the scan takes time, and it is unlikely that I will ever
> > want to access these SD directories/files through the Journal view ?
>
> Hi, the following method in the journal decides whether to automount a
> device or not:
>
> http://dev.laptop.org/git?p=journal-activity;a=blob;f=volumesmanager.py;h=6147681653d4d29133239b65ceb7ff72877b63d9;hb=HEAD#l92
>
> Good luck,
>
> Tomeu
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.laptop.org
> http://lists.laptop.org/listinfo/devel
>

adding

if os.path.exists(device.GetProperty('volume.mount_point') + ".do_not_scan")
    return False

to that method and putting a file named .do_not_scan in the devices
top level directory should prevent it from scanning it.  I don't have
my XO with me to test it, but I will take a look when I get home.



More information about the Devel mailing list