Lines Matching refs:fiosnapp
62 ufs_snap_create(struct vnode *vp, struct fiosnapcreate_multi *fiosnapp,
87 fiosnapp->error = FIOCOW_EREADONLY;
97 error = ufs_snap_init_backfile(fiosnapp->backfiledesc,
98 fiosnapp->backfilecount, &bfvpp, ufsvfsp);
100 fiosnapp->error = FIOCOW_EBACKFILE;
109 release_backing_vnodes(&bfvpp, fiosnapp->backfilecount);
114 release_backing_vnodes(&bfvpp, fiosnapp->backfilecount);
115 fiosnapp->error = FIOCOW_EULOCK;
123 release_backing_vnodes(&bfvpp, fiosnapp->backfilecount);
124 fiosnapp->error = FIOCOW_EWLOCK;
135 fiosnapp->error = FIOCOW_ECLEAN;
145 fiosnapp->error = FIOCOW_EBUSY;
162 if (fiosnapp->chunksize != 0)
163 chunksize = fiosnapp->chunksize;
176 fiosnapp->error = FIOCOW_ECHUNKSZ;
187 snapid = fssnap_create(nchunks, chunksize, fiosnapp->maxsize, vp,
188 fiosnapp->backfilecount, bfvpp, fiosnapp->backfilename,
189 fiosnapp->backfilesize);
191 fiosnapp->error = FIOCOW_ECREATE;
197 fiosnapp->snapshotnumber = fssnap_create_done(snapid);
202 fiosnapp->error = FIOCOW_EBITMAP;
215 fiosnapp->error = FIOCOW_ENOULOCK;
218 fiosnapp->error = 0;
225 release_backing_vnodes(&bfvpp, fiosnapp->backfilecount);
358 ufs_snap_delete(struct vnode *vp, struct fiosnapdelete *fiosnapp, cred_t *cr)
366 fiosnapp->error = 0;
384 fiosnapp->error = FIOCOW_EREADONLY;
389 fiosnapp->snapshotnumber = fssnap_delete(&ufsvfsp->vfs_snapshot);
391 if (fiosnapp->snapshotnumber == -1)