Changeset 31439 for branches/eam_branches/ipp-20110404/Nebulous-Server
- Timestamp:
- May 5, 2011, 10:05:10 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110404/Nebulous-Server/lib/Nebulous
- Files:
-
- 2 edited
-
Server.pm (modified) (1 diff)
-
Server/SQL.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110404/Nebulous-Server/lib/Nebulous/Server.pm
r28527 r31439 2546 2546 } 2547 2547 2548 if ($xattr) {2549 my $path = $uri->file;2550 $log->logdie("can not set xattr on $path: $!")2551 unless (setfattr($path, 'user.nebulous_key', $key->path));2552 }2548 # if ($xattr) { 2549 # my $path = $uri->file; 2550 # $log->logdie("can not set xattr on $path: $!") 2551 # unless (setfattr($path, 'user.nebulous_key', $key->path)); 2552 # } 2553 2553 2554 2554 return $uri; -
branches/eam_branches/ipp-20110404/Nebulous-Server/lib/Nebulous/Server/SQL.pm
r28492 r31439 336 336 AND m.available = ? 337 337 AND m.allocate = ? 338 AND m.xattr = 0 338 339 AND ( (v.cab_id IS NULL) || 339 340 (v.cab_id != ?) ) … … 344 345 }, 345 346 # volume handler 347 # This has a hack to get around the lack of location awareness by using xattr. 346 348 get_storage_volume => qq{ 347 349 SELECT * from ( … … 357 359 AND available = ? 358 360 AND allocate = ? 361 AND xattr = 0 359 362 ORDER BY free DESC 360 363 LIMIT ?) as topfew
Note:
See TracChangeset
for help on using the changeset viewer.
