libzfs_dataset.c (223623) | libzfs_dataset.c (224525) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 4275 unchanged lines hidden (view full) --- 4284 * Attach/detach the given filesystem to/from the given jail. 4285 */ 4286int 4287zfs_jail(zfs_handle_t *zhp, int jailid, int attach) 4288{ 4289 libzfs_handle_t *hdl = zhp->zfs_hdl; 4290 zfs_cmd_t zc = { 0 }; 4291 char errbuf[1024]; | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 4275 unchanged lines hidden (view full) --- 4284 * Attach/detach the given filesystem to/from the given jail. 4285 */ 4286int 4287zfs_jail(zfs_handle_t *zhp, int jailid, int attach) 4288{ 4289 libzfs_handle_t *hdl = zhp->zfs_hdl; 4290 zfs_cmd_t zc = { 0 }; 4291 char errbuf[1024]; |
4292 int cmd, ret; | 4292 unsigned long cmd; 4293 int ret; |
4293 4294 if (attach) { 4295 (void) snprintf(errbuf, sizeof (errbuf), 4296 dgettext(TEXT_DOMAIN, "cannot jail '%s'"), zhp->zfs_name); 4297 } else { 4298 (void) snprintf(errbuf, sizeof (errbuf), 4299 dgettext(TEXT_DOMAIN, "cannot jail '%s'"), zhp->zfs_name); 4300 } --- 23 unchanged lines hidden --- | 4294 4295 if (attach) { 4296 (void) snprintf(errbuf, sizeof (errbuf), 4297 dgettext(TEXT_DOMAIN, "cannot jail '%s'"), zhp->zfs_name); 4298 } else { 4299 (void) snprintf(errbuf, sizeof (errbuf), 4300 dgettext(TEXT_DOMAIN, "cannot jail '%s'"), zhp->zfs_name); 4301 } --- 23 unchanged lines hidden --- |