Le 04 avril 2011 à 12:57, Freddie Cash a écrit: > Isn't this a situation where supporting a trailing / would help? > > For example, with the / at the end, means "put the snapshot into the > folder". Thus "btrfs subvolume snapshot /ssd/sub1 /ssd/5/" would > create a "sub1" snapshot inside the 5/ folder. Running it a second > time would error out since /ssd/5/sub1/ already exists. And if the 5/ > folder doesn't exist, it would error out. > > And without the / at the end, means "name the snapshot". Thus "btrfs > subvolume snapshot /ssd/sub1 /ssd/5" would create a snapshot named > "/ssd/5". Running the command again would error out due to the > snapshot already existing. And if the 5/ folder doesn't exist, it's > created. And it errors out if the 5/ folder already exists. > > Or, something along those lines. Similar to how other apps work > with/without a trailing /.
I am not an expert, but I think it is the opposite with rsync. Cheers, -- Xavier Nicollet -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html