generic/062: don't create WHITEOUT_DEV
authorEryu Guan <eguan@redhat.com>
Mon, 21 Dec 2015 07:07:48 +0000 (18:07 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 21 Dec 2015 07:07:48 +0000 (18:07 +1100)
overlay doesn't support creating WHITEOUT_DEV (major and minor device ID
are both 0). Create null device instead.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/062

index 90fcbdaf7c492e977906911e586c733b106e2122..e4dc2cc8ccedd22fe8ee7b18680b759eceb14118 100755 (executable)
@@ -63,7 +63,7 @@ _create_test_bed()
        ln -s $SCRATCH_MNT/dir $SCRATCH_MNT/lnk
        mkdir $SCRATCH_MNT/dev
        mknod $SCRATCH_MNT/dev/b b 0 0
-       mknod $SCRATCH_MNT/dev/c c 0 0
+       mknod $SCRATCH_MNT/dev/c c 1 3
        mknod $SCRATCH_MNT/dev/p p
        # sanity check
        find $SCRATCH_MNT | LC_COLLATE=POSIX sort | _filter_scratch | grep -v "lost+found"