Skip to contentSkip to conversation

btrfsctl -s returns 1

DISCUSSION Dipl.-Ing. Michael Niederle 1 participant 1 message Jan 12, 2010 Btrfs file system

lore
Share & tools
lore
#0 lore raw

I wrote a script generating snapshots of several subvolumes. But the script failed after taking the first snapshot.

I then did it by hand:

Quoted 1 line

btrfsctl -s /.backups/2010-01-12.1/home /home

operation complete
Btrfs v0.19-4-gab8fb4c

Quoted 1 line

echo $?

1

Usually commands return 0 if everything went ok (and it seems that the snapshot was taken correctly).

Has the returned "1" some special meaning?

------

Another, minor issue:

Mayby my manual is out of date. It tells me

Quoted 1 line

man btrfsctl

...
-s snapshot-name directory
Creates a new snapshot of the directory specified.
...

but as I learned one can only take a snapshot of a subvolume.

Greetings, Michael