Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/gpt Always set NOSYNC if regular file, even if we got t...



details:   https://anonhg.NetBSD.org/src/rev/a6ce28a29c40
branches:  trunk
changeset: 342006:a6ce28a29c40
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 02 12:20:52 2015 +0000

description:
Always set NOSYNC if regular file, even if we got the size from the command
line.

diffstat:

 sbin/gpt/gpt.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r b1d05c403465 -r a6ce28a29c40 sbin/gpt/gpt.c
--- a/sbin/gpt/gpt.c    Wed Dec 02 11:20:34 2015 +0000
+++ b/sbin/gpt/gpt.c    Wed Dec 02 12:20:52 2015 +0000
@@ -35,7 +35,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: gpt.c,v 1.55 2015/12/02 10:19:58 jnemeth Exp $");
+__RCSID("$NetBSD: gpt.c,v 1.56 2015/12/02 12:20:52 christos Exp $");
 #endif
 
 #include <sys/param.h>
@@ -525,8 +525,8 @@
                                goto close;
                        }
                        gpt->mediasz = gpt->sb.st_size;
-                       gpt->flags |= GPT_NOSYNC;
                }
+               gpt->flags |= GPT_NOSYNC;
        }
 
        /*



Home | Main Index | Thread Index | Old Index