The NetBSD Project

CVS log for src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_ioctl.c

[BACK] Up to [cvs.NetBSD.org] / src / external / cddl / osnet / dist / uts / common / fs / zfs

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Thu Mar 25 18:41:29 2021 UTC (8 months, 1 week ago) by gdt
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.22: +0 -1 lines
Diff to previous 1.22 (unified)

zfs_ioctl.c: Drop WARNING that ZFS is under development

Following discussions on current-users@, it seems many rely on ZFS to
store data, and there are not particularly large issues with ZFS.  ATF
tests with /tmp as tmpfs, ffs2, and zfs are similar, with only a
slight increase in failures under zfs.

(This commit should probably NOT be pulled up to 9.)

Revision 1.22 / (download) - annotate - [select for diffs], Fri Feb 28 03:52:26 2020 UTC (21 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Changes since 1.21: +24 -1 lines
Diff to previous 1.21 (unified)

Teach zfs bdevsw to do b_psize.

This is needed, among other things, to swap on zvols.

Attempting to swap on zvols currently deadlocks but that's a separate
issue that needs to be fixed too!

Revision 1.21 / (download) - annotate - [select for diffs], Mon Oct 14 13:18:00 2019 UTC (2 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.20: +0 -4 lines
Diff to previous 1.20 (unified)

Change dmu_diff() back to use a "file" instead of a "vnode".
Command "zfs diff" calls it with a pipe, not a plain file.

Fixes PR kern/54541: kernel panic using "zfs diff"

Revision 1.20 / (download) - annotate - [select for diffs], Wed May 22 08:46:27 2019 UTC (2 years, 6 months ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (unified)

Add missing zvol_close() to zfsdev_close().

Change zvol_size_changed() to initialize "zv->zv_volsize"
and initialize only "dg_secsize" and "dg_secperunit".
Calling disk_set_info() will initialize the remaining
parts of the geometry.

Set "doread" in zvol_strategy() to make reading from
device possible.

Reorganize/add disk_busy()/disk_unbusy() instrumentation.

Redo zvol_ioctl() to implement DIOCGWEDGEINFO and let
disk_ioctl() process the remaining ioctls.

Revision 1.19 / (download) - annotate - [select for diffs], Wed May 22 08:45:32 2019 UTC (2 years, 6 months ago) by hannken
Branch: MAIN
Changes since 1.18: +3 -9 lines
Diff to previous 1.18 (unified)

Enable the zvol minor management to create and remove device nodes.

Revision 1.18 / (download) - annotate - [select for diffs], Wed May 22 08:44:48 2019 UTC (2 years, 6 months ago) by hannken
Branch: MAIN
Changes since 1.17: +4 -7 lines
Diff to previous 1.17 (unified)

Update ddi environment:
- Put device major numbers into "dev_info_t".
- Fix an off-by-one in zvol_create_minor().
- When creating a node handle existing nodes
  and add owner read/write permission.
- When removing nodes remove now empty directories.

Revision 1.17 / (download) - annotate - [select for diffs], Tue May 7 08:51:09 2019 UTC (2 years, 6 months ago) by hannken
Branch: MAIN
Changes since 1.16: +1 -4 lines
Diff to previous 1.16 (unified)

Cleanup modules "solaris" and "zfs":

- Defer spa_config_load() until root is mounted.
- Restore the config path to "/etc/zfs/zpool.cache".
- Module "zfs" is type MODULE_CLASS_VFS and no longer depends on "rootvnode".
- Module "solaris" no longer depends on "mp_online".
- Fix rump component registration to not detach "/dev/zfs" if
  it didn't attach it.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 5 09:54:36 2019 UTC (2 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 (unified)

Prepare the implementation of the ZFS control directory ".zfs".

- Move the stub routines from zfs_stub.c to zfs_ctldir.c and
  remove now empty file zfs_stub.c

- Add stub routines for zfsctl_loadvnode() to initialize control
  nodes and zfsctl_snapshot() to retrieve ".zfs/snapshot".

- Add an initial vnode operations vector for control nodes.

- Implement lookup into ".zfs" and lookup ".." from ".zfs/snapshot/<snap>".

- Change nodeid of mounted snapshots to the snapshot object id.

- Respect "-u" flag to "zfs rename <snapshot> ...".

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jan 12 10:43:33 2019 UTC (2 years, 10 months ago) by hannken
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118
Changes since 1.14: +57 -1 lines
Diff to previous 1.14 (unified)

The ZFS onexit routines expect opening ZFS_DEV with O_EXCL to return
a cloned device with an unique minor number.

Use fd_clone() on this condition to return a cloned device descriptor.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jan 1 10:08:01 2019 UTC (2 years, 11 months ago) by hannken
Branch: MAIN
Changes since 1.13: +0 -3 lines
Diff to previous 1.13 (unified)

Cannot hold zfs object across call to vcache_get() as it might
deadlock with another reclaim.

Add vfs operation zfs_newvnode() to create a new zfs node and
hold the zfs object in zfs_loadvnode() and zfs_newvnode() only.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Aug 20 06:47:16 2018 UTC (3 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (unified)

Avoid uninitialized warning.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jun 16 15:18:33 2018 UTC (3 years, 5 months ago) by gson
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.11: +1 -1 lines
Diff to previous 1.11 (unified)

Use space between words

Revision 1.11 / (download) - annotate - [select for diffs], Mon May 28 21:05:07 2018 UTC (3 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.10: +3666 -1328 lines
Diff to previous 1.10 (unified)

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
 - dtrace FBT probes can now be placed in kernel modules.
 - ZFS now supports mmap().

Revision 1.10 / (download) - annotate - [select for diffs], Fri Apr 10 20:55:38 2015 UTC (6 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2, pgoyette-localcount, pgoyette-compat
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (unified)

Use dprintf, not printf, for debug messages.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 4 01:14:35 2013 UTC (8 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, agc-symver-base, agc-symver
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (unified)

let zfs autoload too.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Nov 20 02:54:25 2011 UTC (10 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: tls-maxphys
Changes since 1.7: +8 -8 lines
Diff to previous 1.7 (unified)

enough with the compile time warnings.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jan 21 13:08:42 2011 UTC (10 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: yamt-pagecache
Changes since 1.6: +3 -0 lines
Diff to previous 1.6 (unified)

Don't allow module to init if root is not mounted since the modcmd
wants to traverse the file system.  This *might* fix statically
linking zfs support into the kernel (at least it fixes rump kernel
bootstrap).

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 19 18:01:26 2010 UTC (11 years, 6 months ago) by haad
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.5: +0 -8 lines
Diff to previous 1.5 (unified)

Use ddi_copyin and ddi_copyout as solaris does, change them to
ioctl_copyin/ioctl_copyout in kernel and to bcopy in user space.

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 19 17:57:42 2010 UTC (11 years, 6 months ago) by haad
Branch: MAIN
Changes since 1.4: +1 -3 lines
Diff to previous 1.4 (unified)

Do not call zfs_init and zfs_fini directly they will be called by vfs routines.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 27 23:43:53 2010 UTC (11 years, 9 months ago) by haad
Branch: MAIN
Changes since 1.3: +2071 -612 lines
Diff to previous 1.3 (unified)

Merge NetBSD local changes to new zfs version 22 sources.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Aug 7 22:47:19 2009 UTC (12 years, 3 months ago) by haad
Branch: MAIN
CVS Tags: matt-premerge-20091211, darran-pre-netbsd, darran-pre-freebsd, darran-pre-dtrace
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (unified)

Enable zfs module only for machine with at least 512Mb ram.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 7 20:16:45 2009 UTC (12 years, 3 months ago) by haad
Branch: MAIN
Changes since 1.1: +253 -38 lines
Diff to previous 1.1 (unified)

Add NetBSD specific changes to OpenSolaris code. These changes were made
by Andrew Doran and me. Thank you Andrew for your great help.

Oked by core@ and ad@.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 7 18:33:26 2009 UTC (12 years, 3 months ago) by haad
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>