[BUG] snapshots content is not available

Moderators: jhartley, MSR734, nola

[BUG] snapshots content is not available

Post by estibi » Mon Sep 24, 2012 12:06 pm

Hello,

Thanks for porting ZFS to OS X!

I have a small BUG report.
Snapshot content is not available until you create a dedicated clone, OS X 10.8.2.

uname -v
Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64

# kextstat | grep zfs
114 1 0xffffff7f82335000 0x19d000 0x19d000 com.getgreenbytes.filesystem.zfs (2012.09.14) <13 7 5 4 3 1>
115 0 0xffffff7f824d2000 0x6000 0x6000 com.getgreenbytes.driver.zfs (2012.09.14) <114 13 7 5 4 3 1>

# zfs list -r -t snapshot data250/backups
NAME USED AVAIL REFER MOUNTPOINT
data250/backups@snap 1.80Mi - 458Mi -

# ls -alh /Volumes/data250/backups/.zfs/snapshot/snap/
total 0
dr-xr-xr-x 2 root admin 2B Sep 24 18:53 .
dr-xr-xr-x 2 root admin 2B Sep 24 18:53 ..

# zfs clone data250/backups@snap data250/clone

# ls -alh /Volumes/data250/clone/
total 938132
drwxr-xr-x 4 estibi wheel 5B Sep 24 19:02 .
drwxr-xr-x 7 root wheel 7B Sep 24 19:02 ..
drwxrwxrwt 3 estibi wheel 3B Sep 24 19:02 .Trashes
drwx------ 2 root wheel 3B Sep 24 18:53 .fseventsd
-rw-r--r-- 1 estibi wheel 466M Sep 24 18:57 image.sparseimage
estibi Offline


 
Posts: 1
Joined: Mon Sep 24, 2012 5:34 am

possible cross reference

Post by grahamperrin » Mon Sep 24, 2012 1:58 pm

Maybe relevant, from an earlier topic (Snapshots accessible without mounting them?):

ls -al
seems to not work as expected on first attempt,
succeeds on the second attempt.


In retrospect, that may be not the best way of looking at things. There may be other factors. Generally I suspect that some uses of the ls command are not sufficiently demanding for the on-demand mounting described at Snapshot browsing.

Here, without creating a dedicated clone:

Code: Select all
macbookpro08-centrim:~ gjp22$ zfs get snapdir tall/backups
NAME          PROPERTY  VALUE    SOURCE
tall/backups  snapdir   visible  inherited from tall
macbookpro08-centrim:~ gjp22$ zfs snapshot tall/backups@example
macbookpro08-centrim:~ gjp22$ ls -alh /Volumes/tall/backups/.zfs/snapshot/example
total 0
dr-xr-xr-x@ 2 root  admin     2B 24 Sep 18:14 .
dr-xr-xr-x  2 root  admin     2B 24 Sep 18:14 ..
macbookpro08-centrim:~ gjp22$ touch /Volumes/tall/backups/touched.txt
macbookpro08-centrim:~ gjp22$ ls -alh /Volumes/tall/backups/.zfs/snapshot/example
total 790
drwxr-xr-x@ 15 gjp22  staff    18B 18 Aug 22:26 .
dr-xr-xr-x   2 root   admin     2B 24 Sep 18:14 ..
-rw-r--r--@  1 gjp22  staff    12K  1 Sep 17:13 .DS_Store
drwx------   4 root   staff     5B 30 May 19:29 .Spotlight-V100
drwxrwxrwt@  3 gjp22  staff     3B 26 Jul 04:39 .TemporaryItems
d-wx-wx-wt   2 root   staff     2B 15 Sep 07:17 .Trashes
-r--r--r--   2 root   admin   195K 30 May 19:29 .VolumeIcon.icns
-rw-r--r--   1 gjp22  staff   307B 16 Jul 22:04 .apdisk
drwx------   2 root   staff    61B 24 Sep 07:43 .fseventsd
drwxr-xr-x   3 gjp22  staff     6B 12 Apr 08:35 2012-04-12 08-35 speedy.sparsebundle
drwxrwx---   2 gjp22  staff    10B 13 Sep  2009 Deleted Users
drwxrwxr-x   3 gjp22  staff     5B  1 Apr 10:33 Georgina
drwxr-xr-x   2 gjp22  staff     3B 12 Apr 18:24 Glenn's, imaged for Rickie
drwxr-xr-x   2 gjp22  staff     2B 23 Jun 07:09 LaCie d2 Extreme
drwxr-xr-x   2 gjp22  staff     2B 17 Jun 20:20 blocky
drwxr-xr-x   2 gjp22  staff     2B 24 Jul 07:15 gjp22
drwxr-xr-x   3 gjp22  staff     4B 14 Apr 10:44 invalid number of extended attributes
drwxr-xr-x   2 gjp22  staff     2B 18 Aug 22:26 zhandy
macbookpro08-centrim:~ gjp22$
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 1 guest

cron