Print each file or directory excluded
authorEric Biggers <ebiggers3@gmail.com>
Tue, 26 Mar 2013 21:27:45 +0000 (16:27 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 26 Mar 2013 21:27:45 +0000 (16:27 -0500)
doc/imagex-capture.1.in
programs/imagex.c
src/add_image.c
src/ntfs-capture.c
src/wimlib.h
src/win32.c

index e36f0e1..76b10e7 100644 (file)
@@ -202,6 +202,9 @@ forward slashes or backslashes, and the line separators may be either UNIX-style
 or DOS-style.  However, globs with spaces in them currently must not be quoted.
 Empty lines are ignored.
 
+On UNIX, drive letters are stripped from all patterns.  On Windows, drive
+letters are allowed, but must specify absolute paths and are treated as such.
+
 If this option is not specified the following default configuration file is
 used:
 
index 58c969e..17cc36f 100644 (file)
@@ -1106,7 +1106,7 @@ imagex_capture_or_append(int argc, tchar **argv)
 {
        int c;
        int open_flags = 0;
-       int add_image_flags = 0;
+       int add_image_flags = WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE;
        int write_flags = 0;
        int compression_type = WIMLIB_COMPRESSION_TYPE_XPRESS;
        const tchar *wimfile;
index d6175c2..0e55a98 100644 (file)
@@ -286,7 +286,7 @@ unix_build_dentry_tree_recursive(struct wim_dentry **root_ret,
                        ret = WIMLIB_ERR_INVALID_CAPTURE_CONFIG;
                        goto out;
                }
-               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_VERBOSE)
+               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE)
                    && progress_func)
                {
                        union wimlib_progress_info info;
@@ -1042,6 +1042,9 @@ wimlib_add_image_multisource(WIMStruct *w,
        }
 #endif
 
+       if (add_image_flags & WIMLIB_ADD_IMAGE_FLAG_VERBOSE)
+               add_image_flags |= WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE;
+
        if (!name || !*name) {
                ERROR("Must specify a non-empty string for the image name");
                return WIMLIB_ERR_INVALID_PARAM;
index 9665050..03c8720 100644 (file)
@@ -511,7 +511,7 @@ build_dentry_tree_ntfs_recursive(struct wim_dentry **root_p,
        if (exclude_path(path, path_len, config, false)) {
                /* Exclude a file or directory tree based on the capture
                 * configuration file */
-               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_VERBOSE)
+               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE)
                    && progress_func)
                {
                        union wimlib_progress_info info;
index 1ccdd3b..dfa685f 100644 (file)
@@ -645,6 +645,12 @@ struct wimlib_capture_source {
  * */
 #define WIMLIB_ADD_IMAGE_FLAG_STRICT_ACLS              0x00000040
 
+/** Call the progress function with the message
+ * ::WIMLIB_PROGRESS_MSG_SCAN_DENTRY when a directory or file is excluded from
+ * capture.  This is a subset of the messages provided by
+ * ::WIMLIB_ADD_IMAGE_FLAG_VERBOSE. */
+#define WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE          0x00000080
+
 /******************************
  * WIMLIB_EXPORT_FLAG_* *
  ******************************/
index 4e49654..57f6fdb 100644 (file)
@@ -751,7 +751,7 @@ win32_build_dentry_tree_recursive(struct wim_dentry **root_ret,
                        ret = WIMLIB_ERR_INVALID_CAPTURE_CONFIG;
                        goto out;
                }
-               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_VERBOSE)
+               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE)
                    && progress_func)
                {
                        union wimlib_progress_info info;