~serge-hallyn/ubuntu/quantal/mountall/mountall-lxc

« back to all changes in this revision

Viewing changes to src/mountall.c

  • Committer: Steve Langasek
  • Date: 2012-09-09 02:18:26 UTC
  • Revision ID: steve.langasek@canonical.com-20120909021826-0fd4npuzvfu2i5i0
Take care to only mark filesystems 'mounted' once the mounted event has been
processed, and don't emit a 'mounted' event if there's already a pending
event in process since this can only mean the mount has already happened

Show diffs side-by-side

added added

removed removed

Lines of Context:
1468
1468
 
1469
1469
        nih_debug ("%s", MOUNT_NAME (mnt));
1470
1470
 
1471
 
        mnt->mounted = TRUE;
1472
 
        newly_mounted = TRUE;
1473
 
        nih_main_loop_interrupt ();
1474
 
 
1475
1471
        mnt->error = ERROR_NONE;
1476
1472
        plymouth_update (FALSE);
1477
1473
 
1511
1507
                }
1512
1508
        }
1513
1509
 
1514
 
        emit_event ("mounted", mnt, mounted_event_handled);
 
1510
        if (!mnt->pending_call)
 
1511
                emit_event ("mounted", mnt, mounted_event_handled);
1515
1512
 
1516
1513
        fsck_update ();
1517
1514
}
1903
1900
         * the current one before we do. */
1904
1901
        mnt->pending_call = NULL;
1905
1902
 
 
1903
        mnt->mounted = TRUE;
 
1904
        newly_mounted = TRUE;
 
1905
        nih_main_loop_interrupt ();
 
1906
 
1906
1907
        if (!strcmp(mnt->type, "swap")) {
1907
1908
                nih_info ("mounted event handled for swap %s", mnt->device);
1908
1909
        } else {