Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Michael Schuster
On 30.03.10 06:54, Dan Price wrote: On Mon 29 Mar 2010 at 11:14AM, Bart Smaalders wrote: On 03/29/10 11:01, Matthew Ahrens wrote: How do commands like ls and find handle printing of filenames with arbitrary characters (newlines and such)? In general, badly. Tim, My concern, which others h

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Vladimir Marek
Hi, I'm wondering, will zfs diff work between two zfs pools? I want to know if the current snapshot of my data differs from the snapshot I created by "zfs send | zfs receive" while ago (on the same machine, just different pool), so that I should refresh my backup. Does 'zfs diff' read all the da

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Tim Haley
On 3/30/10 5:35 AM, Vladimir Marek wrote: Hi, I'm wondering, will zfs diff work between two zfs pools? No. Only between snapshots within the same dataset within the same pool. I want to know if the current snapshot of my data differs from the snapshot I created by "zfs send | zfs receive

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Glenn Brunette
Dan, I have to +1 all of your well-thought-out comments. As a potential consuming of this functionality for the Immutable Service Container project, answers to these questions are critical. I am also interested in whether additional fields can be added to the output similar to a "-o field1,fie

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Bart Smaalders
On 03/30/10 09:58, Glenn Brunette wrote: Dan, I have to +1 all of your well-thought-out comments. As a potential consuming of this functionality for the Immutable Service Container project, answers to these questions are critical. I am also interested in whether additional fields can be added

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Dan Price
On Tue 30 Mar 2010 at 01:20AM, Nicolas Williams wrote: > > 1) In what order are the changes printed? If I saw: > > > > + /myfiles/rename_dir > > R /myfiles/rename_dir -> /myfiles/rename_dir > > > > My analyzer would need to be smart enough to realize that the second > > must

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread johansen
On Tue, Mar 30, 2010 at 10:31:04AM -0700, Bart Smaalders wrote: > On 03/30/10 09:58, Glenn Brunette wrote: > > > >Dan, > > > >I have to +1 all of your well-thought-out comments. As a potential > >consuming of this functionality for the Immutable Service Container > >project, answers to these questi

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Tim Haley
On 03/30/10 12:29 PM, Dan Price wrote: On Tue 30 Mar 2010 at 01:20AM, Nicolas Williams wrote: 1) In what order are the changes printed? If I saw: + /myfiles/rename_dir R /myfiles/rename_dir -> /myfiles/rename_dir My analyzer would need to be smart enough to realiz

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Dan Price
On Tue 30 Mar 2010 at 07:21AM, Tim Haley wrote: > On 3/30/10 5:35 AM, Vladimir Marek wrote: > >Hi, > > > >I'm wondering, will zfs diff work between two zfs pools? > > > > No. Only between snapshots within the same dataset within the same pool. Only within the same dataset? What about a snapsh

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Nicolas Williams
On Tue, Mar 30, 2010 at 12:42:00PM -0600, Tim Haley wrote: > On 03/30/10 12:29 PM, Dan Price wrote: > >The example was slightly messed up, sorry; that caused misunderstanding. > >I'm worried about this situation: > > > > snaps...@1 > > mv /myfiles/name1 /myfiles/name2 > > mk

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Tim Haley
On 03/30/10 01:25 PM, Nicolas Williams wrote: On Tue, Mar 30, 2010 at 12:42:00PM -0600, Tim Haley wrote: On 03/30/10 12:29 PM, Dan Price wrote: The example was slightly messed up, sorry; that caused misunderstanding. I'm worried about this situation: snaps...@1 mv /myfiles/na

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Tim Haley
On 3/29/10 10:54 PM, Dan Price wrote: On Mon 29 Mar 2010 at 11:14AM, Bart Smaalders wrote: On 03/29/10 11:01, Matthew Ahrens wrote: How do commands like ls and find handle printing of filenames with arbitrary characters (newlines and such)? In general, badly. Tim, My

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Nicolas Williams
On Tue, Mar 30, 2010 at 02:04:39PM -0600, Tim Haley wrote: > It would be easy enough for me to print a 'time' column as the first > column, and the output could then be sent to 'sort -n'. I'm not sure > how people feel about that. Is that cheating? :-) The alternative > is to AVL sort by that t

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Nicolas Williams
On Tue, Mar 30, 2010 at 02:22:43PM -0600, Tim Haley wrote: > You are correct that the command should work with clones, too, as > though are desendant. > For a clone we'd present its paths relative to where it is mounted. I'd say make all paths relative to the root of the dataset, even when the new

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread Glenn Brunette
On 3/30/10 4:36 PM, Nicolas Williams wrote: On Tue, Mar 30, 2010 at 02:04:39PM -0600, Tim Haley wrote: It would be easy enough for me to print a 'time' column as the first column, and the output could then be sent to 'sort -n'. I'm not sure how people feel about that. Is that cheating? :-)

Re: zfs diff [PSARC/2010/105 FastTrack timeout 04/05/2010]

2010-03-30 Thread John Plocher
On Tue, Mar 30, 2010 at 1:36 PM, Nicolas Williams wrote: > On Tue, Mar 30, 2010 at 02:04:39PM -0600, Tim Haley wrote: >> It would be easy enough for me to print a 'time' column as the first This is getting pretty close to "design by ARC" rather than "review by ARC"; it might be a better use of