g_label.c (682ee99e7adad4c4181f9bf99fc0bbae7bd7bff7) g_label.c (02c62349c93f29b881498630c7a0623540255764)
1/*-
2 * Copyright (c) 2004-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 173 unchanged lines hidden (view full) ---

182 if (req != NULL)
183 gctl_error(req, "Cannot create slice %s.", label);
184 return (NULL);
185 }
186 gp->orphan = g_label_orphan;
187 gp->spoiled = g_label_spoiled;
188 g_access(cp, -1, 0, 0);
189 g_slice_config(gp, 0, G_SLICE_CONFIG_SET, (off_t)0, mediasize,
1/*-
2 * Copyright (c) 2004-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 173 unchanged lines hidden (view full) ---

182 if (req != NULL)
183 gctl_error(req, "Cannot create slice %s.", label);
184 return (NULL);
185 }
186 gp->orphan = g_label_orphan;
187 gp->spoiled = g_label_spoiled;
188 g_access(cp, -1, 0, 0);
189 g_slice_config(gp, 0, G_SLICE_CONFIG_SET, (off_t)0, mediasize,
190 pp->sectorsize, name);
190 pp->sectorsize, "%s", name);
191 G_LABEL_DEBUG(1, "Label for provider %s is %s.", pp->name, name);
192 return (gp);
193}
194
195static int
196g_label_destroy(struct g_geom *gp, boolean_t force)
197{
198 struct g_provider *pp;

--- 300 unchanged lines hidden ---
191 G_LABEL_DEBUG(1, "Label for provider %s is %s.", pp->name, name);
192 return (gp);
193}
194
195static int
196g_label_destroy(struct g_geom *gp, boolean_t force)
197{
198 struct g_provider *pp;

--- 300 unchanged lines hidden ---