mirror of
				git://sourceware.org/git/lvm2.git
				synced 2025-11-03 08:23:48 +03:00 
			
		
		
		
	Internal-only metadata flag support.
This commit is contained in:
		@@ -1,5 +1,7 @@
 | 
			
		||||
Version 2.00.16 - 
 | 
			
		||||
=============================
 | 
			
		||||
  Internal-only metadata flag support.
 | 
			
		||||
  Basic checking for presence of device-mapper targets.
 | 
			
		||||
  Separate out polldaemon.
 | 
			
		||||
  Revise internal locking semantics.
 | 
			
		||||
  Move find_pv_by_name to library.
 | 
			
		||||
 
 | 
			
		||||
@@ -93,19 +93,21 @@ int print_flags(uint32_t status, int type, char *buffer, size_t size)
 | 
			
		||||
 | 
			
		||||
	for (f = 0; flags[f].mask; f++) {
 | 
			
		||||
		if (status & flags[f].mask) {
 | 
			
		||||
			status &= ~flags[f].mask;
 | 
			
		||||
 | 
			
		||||
			/* Internal-only flag? */
 | 
			
		||||
			if (!flags[f].description)
 | 
			
		||||
				continue;
 | 
			
		||||
 | 
			
		||||
			if (!first) {
 | 
			
		||||
				if (!emit_to_buffer(&buffer, &size, ", "))
 | 
			
		||||
					return 0;
 | 
			
		||||
 | 
			
		||||
			} else
 | 
			
		||||
				first = 0;
 | 
			
		||||
 | 
			
		||||
			if (flags[f].description &&
 | 
			
		||||
			    !emit_to_buffer(&buffer, &size, "\"%s\"",
 | 
			
		||||
					    flags[f].description))
 | 
			
		||||
	
 | 
			
		||||
			if (!emit_to_buffer(&buffer, &size, "\"%s\"",
 | 
			
		||||
			    flags[f].description))
 | 
			
		||||
				return 0;
 | 
			
		||||
 | 
			
		||||
			status &= ~flags[f].mask;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user