/[hurd]/hurd/ufs-utils/dlabel.c
ViewVC logotype

Diff of /hurd/ufs-utils/dlabel.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by roland, Sun Nov 21 04:23:17 1999 UTC revision 1.6 by roland, Fri Dec 7 00:35:24 2001 UTC
# Line 1  Line 1 
1  /* Get the disklabel from a device node  /* Get the disklabel from a device node
2    
3     Copyright (C) 1996, 1999 Free Software Foundation, Inc.     Copyright (C) 1996,99,2001 Free Software Foundation, Inc.
4    
5     Written by Miles Bader <miles@gnu.org>     Written by Miles Bader <miles@gnu.org>
6    
# Line 43  fd_get_device (int fd, device_t *device) Line 43  fd_get_device (int fd, device_t *device)
43    if (node == MACH_PORT_NULL)    if (node == MACH_PORT_NULL)
44      return errno;      return errno;
45    
46    err = store_create (node, 0, 0, &store);    err = store_create (node, 0, 0, &store); /* consumes NODE on success */
47    if (! err)    if (! err)
48      {      {
49        if (store->class->id != STORAGE_DEVICE        if (store->class->id != STORAGE_DEVICE
# Line 63  fd_get_device (int fd, device_t *device) Line 63  fd_get_device (int fd, device_t *device)
63          }          }
64        store_free (store);        store_free (store);
65      }      }
66      else
67    mach_port_deallocate (mach_task_self (), node);      mach_port_deallocate (mach_task_self (), node);
68    
69    return err;    return err;
70  }  }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26