Project

General

Profile

« Previous | Next » 

Revision e15e9c6b

Added by Ermal LUÇI almost 14 years ago

Ticket #1279. Decrease the refcount even though we're in booting phase. This helps the refcount to work as intended and help in making filesystem read only correctly on embedded platfroms. While here put some exceptions to refcount API and silent any related errors that might trigger. Also take not of the NOTE on the php manual that after a share memory is opened further references to it for size and access mode should be 0.

View differences:

etc/inc/config.lib.inc
348 348
	if($platform == "cdrom" or $platform == "pfSense")
349 349
		return;
350 350

  
351
	if($g['booting'])
351
	if (refcount_unreference(1000) > 0)
352 352
		return;
353 353

  
354
	if (refcount_unreference(1000) > 0)
354
	if($g['booting'])
355 355
		return;
356 356

  
357 357
	clear_subsystem_dirty('mount');

Also available in: Unified diff