-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ZFS filesystem support #534
Comments
Is there a PR? I can't find one. What about other systems (not linux) - will it work too? |
curlup, sorry for delay... I don't tested this feature in other OS. Only in Linux with ZFSonLinux. |
Any updates on this? This is something I would like to use too. |
Is this correct? Can someone test this patch?
|
@giampaolo I could confirm that it works as I said when ticket was opened. |
OK, I'm gonna make a release soon. Sorry for the big delay (I've been traveling). |
@galindro can you please post the output of |
nodev sysfs
nodev rootfs
nodev ramfs
nodev bdev
nodev proc
nodev cgroup
nodev cpuset
nodev tmpfs
nodev devtmpfs
nodev debugfs
nodev securityfs
nodev sockfs
nodev pipefs
nodev anon_inodefs
nodev devpts
ext3
ext2
ext4
nodev hugetlbfs
vfat
nodev ecryptfs
fuseblk
nodev fuse
nodev fusectl
nodev pstore
nodev mqueue
nodev zfs
iso9660
xfs
msdos
ufs
btrfs |
I should have fixed this in 31258b5. Can you please try latest psutil tests?
|
Done! Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.disk_partitions()
[sdiskpart(device='/dev/xvda1', mountpoint='/', fstype='ext4', opts='rw'), sdiskpart(device='datastore/var', mountpoint='/var', fstype='zfs', opts='rw'), sdiskpart(device='datastore/tmp', mountpoint='/tmp', fstype='zfs', opts='rw,noatime'), sdiskpart(device='datastore/var_log', mountpoint='/var/log', fstype='zfs', opts='rw,noatime')]
>>> |
Wonderful! I should release a new version soon. |
Yes, over 10 months aproximatelly.
|
Hey, you know I do this for free, right? And you know there's a button called "make a pull request" and another one called "fork"? Next time you desperately need a feature you can either:
Usually 1) is the best way to include the change you need as soon as possible because to me that means just pressing the "merge pull request" button. And by the way, by "tests" I mean the tests I added 12 hours ago in 31258b5, not the ones you didn't provide 10 months ago. |
I'm new in github and at that time, I was never worked with git, as you can Thanks again.
|
Zfs also has real block devices that can be partitioned further. This should be tested as well. Since they appear under /dev I think they will work already but better safe than sorry. |
What do you mean? What should we test exactly? Can you can up with some code sample or output of how |
A zfs filesystem does not show in /proc/partitions as it has no user reachable block device. But it does show up in df output: % df -h A zfs block device on the other hand shows up in /proc/partions: % cat /proc/partitions % ls -lh /dev/zvol/lvm-zfs/ The block device can have a filesystem and be mounted too, just like any other block device. I'm fairly certain that just works out of the box already. Formated as ext4 and mounted it shows in df: % df -h % python3
and it does work in psutil. Might be nice to list /dev/zvol/lvm-zfs/test-block as device name for devcies named zdXY but that probably goes the same for raid and lvm devices. |
Closing as fixed. |
I've made a simple modification of _pslinux.py based on master branch downloaded at Sep 21 19:27 UTC.
The bellow modification allow users to list ZFS filesystems on Linux (http://zfsonlinux.org/) through psutil.disk_partitions()
I've made tests and it is working fine.
This is the result:
This is my contribution with this nice project. I hope you include it in future versions.
:)
The text was updated successfully, but these errors were encountered: