-
Notifications
You must be signed in to change notification settings - Fork 3
Zfs 196 #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Zfs 196 #13
Changes from all commits
a7e4b7c
bcdffd9
2c73482
322771a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -246,4 +246,3 @@ ModelManifest.xml | |
.fake/ | ||
|
||
*.am | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
| ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.27004.2005 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.30204.135 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZFSin", "ZFSin\ZFSin.vcxproj", "{9AFC9A86-1D07-49E1-9296-F7A3979B751D}" | ||
EndProject | ||
|
@@ -95,7 +95,6 @@ Global | |
{9AFC9A86-1D07-49E1-9296-F7A3979B751D}.Debug|ARM64.Deploy.0 = Debug|ARM64 | ||
{9AFC9A86-1D07-49E1-9296-F7A3979B751D}.Debug|x64.ActiveCfg = Debug|x64 | ||
{9AFC9A86-1D07-49E1-9296-F7A3979B751D}.Debug|x64.Build.0 = Debug|x64 | ||
{9AFC9A86-1D07-49E1-9296-F7A3979B751D}.Debug|x64.Deploy.0 = Debug|x64 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not req |
||
{9AFC9A86-1D07-49E1-9296-F7A3979B751D}.Debug|x86.ActiveCfg = Debug|Win32 | ||
{9AFC9A86-1D07-49E1-9296-F7A3979B751D}.Debug|x86.Build.0 = Debug|Win32 | ||
{9AFC9A86-1D07-49E1-9296-F7A3979B751D}.Debug|x86.Deploy.0 = Debug|Win32 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2463,7 +2463,7 @@ static void | |
dump_cachefile(const char *cachefile) | ||
{ | ||
int fd; | ||
struct stat statbuf; | ||
struct _stat64 statbuf; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. May not be required |
||
char *buf; | ||
nvlist_t *config; | ||
|
||
|
@@ -2908,7 +2908,7 @@ dump_label(const char *dev) | |
int fd; | ||
label_t labels[VDEV_LABELS]; | ||
char path[MAXPATHLEN]; | ||
struct stat statbuf; | ||
struct _stat64 statbuf; | ||
uint64_t psize, ashift; | ||
int l; | ||
boolean_t label_found = B_FALSE; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cd /d "C:\zfs\ZFSin\zfs\cmd\zpool\zpool" &msbuild "zpool.vcxproj" /t:sdvViewer /p:configuration="Debug" /p:platform="x64" /p:SolutionDir="C:\zfs" | ||
exit %errorlevel% |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -805,7 +805,7 @@ typedef struct zpool_load_policy { | |
* The location of the pool configuration repository, shared between kernel and | ||
* userland. | ||
*/ | ||
#define ZPOOL_CACHE "/etc/zfs/zpool.cache" | ||
#define ZPOOL_CACHE "\\SystemRoot\\System32\\drivers\\zpool.cache" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revert it for now |
||
|
||
/* | ||
* vdev states are ordered from least to most healthy. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* CDDL HEADER START | ||
* | ||
* The contents of this file are subject to the terms of the | ||
* Common Development and Distribution License (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* | ||
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE | ||
* or http://www.opensolaris.org/os/licensing. | ||
* See the License for the specific language governing permissions | ||
* and limitations under the License. | ||
* | ||
* When distributing Covered Code, include this CDDL HEADER in each | ||
* file and include the License file at usr/src/OPENSOLARIS.LICENSE. | ||
* If applicable, add the following below this CDDL HEADER, with the | ||
* fields enclosed by brackets "[]" replaced with your own identifying | ||
* information: Portions Copyright [yyyy] [name of copyright owner] | ||
* | ||
* CDDL HEADER END | ||
*/ | ||
|
||
#ifndef _SYS_ZFS_FILE_H | ||
#define _SYS_ZFS_FILE_H | ||
|
||
typedef HANDLE zfs_file_t; | ||
|
||
typedef struct zfs_file_attr { | ||
ULONGLONG zfa_size; | ||
DWORD zfa_type; | ||
} zfs_file_attr_t; | ||
|
||
int zfs_file_open(const char *path, int flags, int mode, zfs_file_t *fp); | ||
void zfs_file_close(zfs_file_t *fp); | ||
int zfs_file_write(zfs_file_t *fp, const void *buf, size_t len, ssize_t *resid); | ||
int zfs_file_getattr(zfs_file_t* fp, zfs_file_attr_t* zfattr); | ||
int zfs_file_read(zfs_file_t *fp, void *buf, size_t len, ssize_t *resid); | ||
int zfs_file_geomtery(zfs_file_t* hFile, zfs_file_attr_t* zattr); | ||
int zfs_file_pread(zfs_file_t* hFile, void* buf, DWORD dwBytesToRead, DWORD* resid, DWORD offset); | ||
//int zfs_file_pwrite(zfs_file_t *fp, const void *buf, size_t len, loff_t off, | ||
// ssize_t *resid); | ||
//int zfs_file_read(zfs_file_t *fp, void *buf, size_t len, ssize_t *resid); | ||
//int zfs_file_pread(zfs_file_t *fp, void *buf, size_t len, loff_t off, | ||
// ssize_t *resid); | ||
|
||
/* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Check for commented sections. |
||
int zfs_file_seek(zfs_file_t *fp, loff_t *offp, int whence); | ||
int zfs_file_getattr(zfs_file_t *fp, zfs_file_attr_t *zfattr); | ||
int zfs_file_fsync(zfs_file_t *fp, int flags); | ||
int zfs_file_fallocate(zfs_file_t *fp, int mode, loff_t offset, loff_t len); | ||
loff_t zfs_file_off(zfs_file_t *fp); | ||
int zfs_file_unlink(const char *); | ||
|
||
int zfs_file_get(int fd, zfs_file_t **fp); | ||
void zfs_file_put(int fd); | ||
void *zfs_file_private(zfs_file_t *fp); | ||
*/ | ||
|
||
#endif /* _SYS_ZFS_FILE_H */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not required