Searched refs:lockfs (Results 1 - 25 of 27) sorted by relevance

12

/illumos-gate/usr/src/cmd/fs.d/ufs/lockfs/
H A DMakefile28 # cmd/fs.d/ufs/lockfs/Makefile
31 LIBPROG= lockfs
H A Dlockfs.c29 * lockfs
30 * user interface to lockfs functionality
40 #include <sys/lockfs.h>
58 static void lockfs(char *);
210 lockfs(fnp->fn_name);
232 printf("usage: lockfs [-dfhnuw] [-c string] [-a] [file system ...]\n");
257 struct lockfs lf;
269 bzero((caddr_t)&lf, sizeof (struct lockfs));
366 * lockfs
370 lockfs(cha function
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/
H A DMakefile38 labelit lockfs ncheck quot quota quotacheck quotaon \
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dufs_panic.h98 struct lockfs uf_lf; /* needed to set lockfs lock */
99 int uf_lf_err; /* errno if lockfs fails */
H A Dufs_lockfs.h32 #include <sys/lockfs.h>
39 * Sun ufs file system locking (lockfs)
106 * it is used so that a waiting lockfs command will not be starved
118 /* Maximum number of LOCKFS lockfs defined in sys/lockfs.h are 6 */
206 struct lockfs ul_lockfs; /* ioctl lock struct */
H A Dufs_inode.h738 struct ulockfs vfs_ulockfs; /* ufs lockfs support */
740 uint_t vfs_nointr; /* disallow lockfs interrupts */
956 * ufs lockfs stuff
962 extern int ufs_fiolfs(struct vnode *, struct lockfs *, int);
963 extern int ufs__fiolfs(struct vnode *, struct lockfs *, int, int);
964 extern int ufs_fiolfss(struct vnode *, struct lockfs *);
1008 void ufs_freeze(struct ulockfs *, struct lockfs *);
/illumos-gate/usr/src/uts/common/sys/
H A Dlockfs.h38 * ILP32 version of lockfs, used in ufs_ioctl() to support 32-bit app in
50 struct lockfs { struct
/illumos-gate/usr/src/test/zfs-tests/tests/functional/zvol/zvol_misc/
H A Dzvol_misc_002_pos.ksh90 log_must lockfs -f $TESTDIR
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_vnops.c188 * For lockfs: ulockfs begin/end is now inlined in the ufs_xxx functions.
194 /* NOTE: "not blkd" below means that the operation isn't blocked by lockfs */
769 * the request passed the lockfs checks.
1558 struct lockfs lockfs, lockfs_out; local
1607 if (copyin((caddr_t)arg, &lockfs,
1608 sizeof (struct lockfs)))
1614 /* Translate ILP32 lockfs to LP64 lockfs */
1618 lockfs
[all...]
H A Dufs_trans.c69 struct lockfs lockfs; local
106 (void) ufs_fiolfss(ufsvfsp->vfs_root, &lockfs);
107 if (!LOCKFS_IS_ELOCK(&lockfs)) {
108 lockfs.lf_lock = LOCKFS_HLOCK;
109 lockfs.lf_flags = 0;
110 lockfs.lf_comlen = 0;
111 lockfs.lf_comment = NULL;
112 error = ufs_fiolfs(ufsvfsp->vfs_root, &lockfs, 0);
114 * retry after awhile; another app currently doing lockfs
[all...]
H A Dufs_lockfs.c89 * Index to be used in TSD for storing lockfs data
121 * Get the lockfs data from TSD so that lockfs handles the recursive VOP
139 * Validate lockfs request
143 struct lockfs *lockfsp, /* new lock request */
144 struct lockfs *ul_lockfsp) /* old lock state */
208 ufs_freeze(struct ulockfs *ulp, struct lockfs *lockfsp)
256 * this lockfs request will not be starved
866 ufs_fiolfs(struct vnode *vp, struct lockfs *lockfsp, int from_log)
875 struct lockfs *lockfs
[all...]
H A Dufs_panic.c41 #include <sys/lockfs.h>
123 const time_t UF_SHORT_ERROR_PERIOD = 4; /* after (lockfs) error */
124 const time_t UF_LONG_ERROR_PERIOD = 512; /* after (lockfs) error */
256 static int get_lockfs_status(ufs_failure_t *, struct lockfs *);
257 static void alloc_lockfs_comment(ufs_failure_t *, struct lockfs *);
258 static int set_lockfs(ufs_failure_t *, struct lockfs *);
269 static char *lock_name(struct lockfs *);
930 * ufsfx_(un)lockfs
932 * provides hook from lockfs code so we can recognize unlock/relock
1218 get_lockfs_status(ufs_failure_t *f, struct lockfs *lf
[all...]
H A Dufs_vfsops.c230 * VOP will have a lockfs mark on it.
998 * Set logging mounted flag used by lockfs
1125 * Initialize lockfs structure to support file system locking
1128 sizeof (struct lockfs));
1385 struct lockfs lockfs; local
1396 * lockfs protocol.
1425 lockfs.lf_lock = LOCKFS_HLOCK;
1426 lockfs.lf_flags = 0;
1427 lockfs
[all...]
H A Dufs_snap.c69 struct lockfs lf;
H A Dufs_alloc.c1498 allocsp_wlockfs(struct vnode *vp, struct lockfs *lf)
1524 allocsp_unlockfs(struct vnode *vp, struct lockfs *lf)
1554 struct lockfs lf;
H A Dlufs.c854 struct lockfs lf;
990 struct lockfs lf;
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rollback/
H A Dzfs_rollback_common.kshlib121 # using 'lockfs -f' to flush the writes to disk
125 log_must /usr/sbin/lockfs -f $TESTDIR1
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddump.h290 extern int lockfs(char *, char *);
416 extern ulong_t lockfs();
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c5170 struct lockfs lockfs; variable in typeref:struct:lockfs
5188 lockfs.lf_flags = LOCKFS_MOD;
5189 if (ioctl(lockfd, _FIOLFSS, &lockfs) == -1) {
5194 if (LOCKFS_IS_MOD(&lockfs)) {
5198 gettext(" See lockfs(1), umount(1), and fsck(1)\n"));
5204 lockfs.lf_lock = LOCKFS_ULOCK;
5205 lockfs.lf_flags = 0;
5206 lockfs.lf_key = lockfskey;
5208 if (ioctl(lockfd, _FIOLFS, &lockfs)
[all...]
/illumos-gate/usr/src/cmd/boot/scripts/
H A Dcreate_ramdisk.ksh430 lockfs -f "/$ALT_ROOT" 2>/dev/null
434 lockfs -f "/$ALT_ROOT" 2>/dev/null
H A Droot_archive.ksh254 lockfs -f $MNT
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dutilities.c51 #include <sys/lockfs.h>
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dfsck.h348 int pid; /* fsck's process id (put in lockfs comment) */
350 struct lockfs *lfp; /* current lockfs status */
H A Dutilities.c53 #include <sys/lockfs.h>
1490 lfp = (struct lockfs *)malloc(sizeof (struct lockfs));
1493 (void) memset((void *)lfp, 0, sizeof (struct lockfs));
1601 errexit("do_errorlock(%s, %d): lockfs status unallocated\n",
/illumos-gate/usr/src/man/man1m/
H A DMakefile270 lockfs.1m \

Completed in 96 milliseconds

12