Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/atari/dev implement DIOCSDINFO.



details:   https://anonhg.NetBSD.org/src/rev/3a090972de83
branches:  trunk
changeset: 477555:3a090972de83
user:      leo <leo%NetBSD.org@localhost>
date:      Thu Oct 21 15:03:28 1999 +0000

description:
implement DIOCSDINFO.

diffstat:

 sys/arch/atari/dev/hdfd.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 6cff37b4264d -r 3a090972de83 sys/arch/atari/dev/hdfd.c
--- a/sys/arch/atari/dev/hdfd.c Thu Oct 21 14:37:58 1999 +0000
+++ b/sys/arch/atari/dev/hdfd.c Thu Oct 21 15:03:28 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hdfd.c,v 1.15 1999/08/06 08:27:31 leo Exp $    */
+/*     $NetBSD: hdfd.c,v 1.16 1999/10/21 15:03:28 leo Exp $    */
 
 /*-
  * Copyright (c) 1996 Leo Weppelman
@@ -1330,15 +1330,17 @@
                /* XXX do something */
                return 0;
 
+       case DIOCSDINFO:
        case DIOCWDINFO:
                if ((flag & FWRITE) == 0)
-                       return EBADF;
+                   return EBADF;
 
                error = setdisklabel(&buffer, (struct disklabel *)addr, 0,NULL);
                if (error)
-                       return error;
+                   return error;
 
-               error = writedisklabel(dev, fdstrategy, &buffer, NULL);
+               if (cmd == DIOCWDINFO)
+                   error = writedisklabel(dev, fdstrategy, &buffer, NULL);
                return error;
 
        case FDIOCGETFORMAT:



Home | Main Index | Thread Index | Old Index